1130 assert functionQualifier == null;
1131 final int num_operands = operands.length;
1132 if (num_operands < 2 || num_operands > 6) {
1133 throw new IllegalArgumentException(
1134 "Invalid operand count " + Arrays.toString(operands));
1136 SqlNode[] new_operands =
new SqlNode[6];
1139 new_operands[0] = operands[0];
1141 new_operands[1] = operands[1];
1143 if (num_operands < 3 || operands[2] == null) {
1144 new_operands[2] = SqlLiteral.createExactNumeric(
"1", pos);
1146 new_operands[2] = operands[2];
1149 if (num_operands < 4 || operands[3] == null) {
1150 new_operands[3] = SqlLiteral.createExactNumeric(
"1", pos);
1152 new_operands[3] = operands[3];
1155 if (num_operands < 5 || operands[4] == null) {
1156 new_operands[4] = SqlLiteral.createCharString(
"c", pos);
1158 new_operands[4] = operands[4];
1161 if (num_operands < 6 || operands[5] == null) {
1162 new_operands[5] = SqlLiteral.createExactNumeric(
"1", pos);
1164 new_operands[5] = operands[5];
1166 return super.createCall(functionQualifier, pos, new_operands);