File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/main/javacc/net/sf/jsqlparser/parser Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ TOKEN: /* SQL Keywords. prefixed with K_ to avoid name clashes */
198198| <K_BINARY: "BINARY">
199199| <K_REGEXP: "REGEXP">
200200| <K_UNLOGGED: "UNLOGGED">
201+ | <K_CALL: "CALL">
201202}
202203
203204TOKEN : /* Numeric Constants */
@@ -273,6 +274,8 @@ Statement SingleStatement() :
273274 stm = Drop()
274275 |
275276 stm = Truncate()
277+ //|
278+ //stm = Execute()
276279 )
277280 { return stm; }
278281}
@@ -489,7 +492,7 @@ String RelObjectName():
489492 | tk=<K_CAST> | tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING>
490493 | tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
491494 | tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_VALUE> | tk=<K_XML>
492- | tk=<K_COLUMN> )
495+ | tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> )
493496
494497 { return tk.image; }
495498}
@@ -1928,15 +1931,10 @@ Function Function():
19281931}
19291932{
19301933 ["{fn" { retval.setEscaped(true); } ]
1931- (
1932- funcName=RelObjectName()
1933- |
1934- // workaround for replace(string) function (name clash with mysql REPLACE expression)
1935- <K_REPLACE> { funcName = "REPLACE"; }
1936- |
1937- // workaround for truncate(string) function (name clash with mysql TRUNCATE expression)
1938- <K_TRUNCATE> { funcName = "TRUNCATE"; }
1939- ) [ "." tmp=RelObjectName() { funcName+= "." + tmp; } ["." tmp=RelObjectName() { funcName+= "." + tmp; }]]
1934+
1935+ funcName=RelObjectName()
1936+
1937+ [ "." tmp=RelObjectName() { funcName+= "." + tmp; } ["." tmp=RelObjectName() { funcName+= "." + tmp; }]]
19401938 "(" [ [<K_DISTINCT> { retval.setDistinct(true); } | <K_ALL> { retval.setAllColumns(true); }] (expressionList=SimpleExpressionList() | "*" { retval.setAllColumns(true); }) ] ")"
19411939
19421940 ["}"]
You can’t perform that action at this time.
0 commit comments