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() :
1331
1331
| tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SESSION>
1332
1332
| tk=<K_VIEW> | tk=<K_NOLOCK> | tk=<K_VALIDATE> | tk=<K_CYCLE> | tk=<K_OF> | tk=<K_EXCLUDE>
1333
1333
/*| tk=<K_PLACING> | tk=<K_BOTH> | tk=<K_LEADING> | tk=<K_TRAILING> */
1334
+ | tk=<K_FORMAT>
1334
1335
)
1335
1336
1336
1337
{ return tk.image; }
Original file line number Diff line number Diff line change @@ -4286,4 +4286,9 @@ public void testSelectConditionsIssue720And991() throws JSQLParserException {
4286
4286
assertSqlCanBeParsedAndDeparsed ("SELECT 1 < 2 AS a, 0 IS NULL AS b" );
4287
4287
// assertSqlCanBeParsedAndDeparsed("SELECT 1 < 2 AS a, (0 IS NULL) AS b");
4288
4288
}
4289
+
4290
+ @ Test
4291
+ public void testKeyWordExceptIssue1040 () throws JSQLParserException {
4292
+ assertSqlCanBeParsedAndDeparsed ("SELECT FORMAT(100000, 2)" );
4293
+ }
4289
4294
}
You can’t perform that action at this time.
0 commit comments