1051 assert functionQualifier == null;
1052 final int num_operands = operands.length;
1053 if (num_operands < 2 || num_operands > 6) {
1054 throw new IllegalArgumentException(
1055 "Invalid operand count " + Arrays.toString(operands));
1057 SqlNode[] new_operands =
new SqlNode[6];
1059 new_operands[0] = operands[0];
1061 new_operands[1] = operands[1];
1063 if (num_operands < 3 || operands[2] == null) {
1064 new_operands[2] = SqlLiteral.createCharString(
"", pos);
1066 new_operands[2] = operands[2];
1069 if (num_operands < 4 || operands[3] == null) {
1070 new_operands[3] = SqlLiteral.createExactNumeric(
"1", pos);
1072 new_operands[3] = operands[3];
1075 if (num_operands < 5 || operands[4] == null) {
1076 new_operands[4] = SqlLiteral.createExactNumeric(
"0", pos);
1078 new_operands[4] = operands[4];
1081 if (num_operands < 6 || operands[5] == null) {
1082 new_operands[5] = SqlLiteral.createCharString(
"c", pos);
1084 new_operands[5] = operands[5];
1086 return super.createCall(functionQualifier, pos, new_operands);