1394 assert functionQualifier == null;
1395 final int num_operands = operands.length;
1396 if (num_operands < 2 || num_operands > 6) {
1397 throw new IllegalArgumentException(
1398 "Invalid operand count " + Arrays.toString(operands));
1400 SqlNode[] new_operands =
new SqlNode[6];
1403 new_operands[0] = operands[0];
1405 new_operands[1] = operands[1];
1407 if (num_operands < 3 || operands[2] == null) {
1408 new_operands[2] = SqlLiteral.createExactNumeric(
"1", pos);
1410 new_operands[2] = operands[2];
1413 if (num_operands < 4 || operands[3] == null) {
1414 new_operands[3] = SqlLiteral.createExactNumeric(
"1", pos);
1416 new_operands[3] = operands[3];
1419 if (num_operands < 5 || operands[4] == null) {
1420 new_operands[4] = SqlLiteral.createCharString(
"c", pos);
1422 new_operands[4] = operands[4];
1425 if (num_operands < 6 || operands[5] == null) {
1426 new_operands[5] = SqlLiteral.createExactNumeric(
"1", pos);
1428 new_operands[5] = operands[5];
1430 return super.createCall(functionQualifier, pos, new_operands);