File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1331,6 +1331,7 @@ String RelObjectNameWithoutValue() :
13311331 | tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SESSION>
13321332 | tk=<K_VIEW> | tk=<K_NOLOCK> | tk=<K_VALIDATE> | tk=<K_CYCLE> | tk=<K_OF> | tk=<K_EXCLUDE>
13331333 /*| tk=<K_PLACING> | tk=<K_BOTH> | tk=<K_LEADING> | tk=<K_TRAILING> */
1334+ | tk=<K_FORMAT>
13341335 )
13351336
13361337 { return tk.image; }
Original file line number Diff line number Diff line change @@ -4286,4 +4286,9 @@ public void testSelectConditionsIssue720And991() throws JSQLParserException {
42864286 assertSqlCanBeParsedAndDeparsed ("SELECT 1 < 2 AS a, 0 IS NULL AS b" );
42874287// assertSqlCanBeParsedAndDeparsed("SELECT 1 < 2 AS a, (0 IS NULL) AS b");
42884288 }
4289+
4290+ @ Test
4291+ public void testKeyWordExceptIssue1040 () throws JSQLParserException {
4292+ assertSqlCanBeParsedAndDeparsed ("SELECT FORMAT(100000, 2)" );
4293+ }
42894294}
You can’t perform that action at this time.
0 commit comments