File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
main/javacc/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -517,6 +517,7 @@ String RelObjectName():
517
517
| tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
518
518
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_VALUE> | tk=<K_XML>
519
519
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
520
+ | tk=<K_OPEN>
520
521
)
521
522
522
523
{ return tk.image; }
Original file line number Diff line number Diff line change @@ -1602,6 +1602,11 @@ public void testReservedKeyword() throws JSQLParserException {
1602
1602
final Select select = (Select ) parserManager .parse (new StringReader (statement ));
1603
1603
assertStatementCanBeDeparsedAs (select , statement );
1604
1604
}
1605
+
1606
+ public void testReservedKeyword2 () throws JSQLParserException {
1607
+ final String stmt = "SELECT open FROM tableName" ;
1608
+ assertSqlCanBeParsedAndDeparsed (stmt );
1609
+ }
1605
1610
1606
1611
public void testCharacterSetClause () throws JSQLParserException {
1607
1612
String stmt = "SELECT DISTINCT CAST(`view0`.`nick2` AS CHAR (8000) CHARACTER SET utf8) AS `v0` FROM people `view0` WHERE `view0`.`nick2` IS NOT NULL" ;
You can’t perform that action at this time.
0 commit comments