提交 497be6ac authored 作者: Patrick Brielmayer's avatar Patrick Brielmayer

Removed parameter count check

Removed parameter count check since ADD_MONTHS has only two parameter
上级 e97d5ae7
......@@ -300,7 +300,7 @@ public class Function extends Expression implements FunctionCall {
0, Value.DATE);
addFunction("TO_DATE", TO_DATE, VAR_ARGS, Value.STRING);
addFunction("TO_TIMESTAMP", TO_TIMESTAMP, VAR_ARGS, Value.STRING);
addFunction("ADD_MONTHS", ADD_MONTHS, VAR_ARGS, Value.TIMESTAMP);
addFunction("ADD_MONTHS", ADD_MONTHS, 2, Value.TIMESTAMP);
// alias for MSSQLServer
addFunctionNotDeterministic("GETDATE", CURDATE,
0, Value.DATE);
......@@ -2110,10 +2110,6 @@ public class Function extends Expression implements FunctionCall {
protected void checkParameterCount(int len) {
int min = 0, max = Integer.MAX_VALUE;
switch (info.type) {
case ADD_MONTHS:
min = 2;
max = 2;
break;
case COALESCE:
case CSVREAD:
case LEAST:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论