File tree Expand file tree Collapse file tree 2 files changed +6
-1
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
-1
lines changed Original file line number Diff line number Diff line change @@ -1416,7 +1416,7 @@ String RelObjectNameWithoutValue() :
1416
1416
| tk=<K_ALGORITHM>
1417
1417
| tk=<K_BYTE> | tk=<K_CHAR> | tk=<K_CHANGE> | tk=<K_CHARACTER>
1418
1418
| tk=<K_CAST> | tk=<K_COMMENT> | tk=<K_COSTS> | tk=<K_DISABLE> | tk=<K_DESC>
1419
- | tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING> | tk=<K_JSON>
1419
+ | tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FILTER> | tk=< K_FIRST> | tk=<K_FOLLOWING> | tk=<K_JSON>
1420
1420
| tk=<K_LAST> | tk=<K_LEADING> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
1421
1421
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_XML>
1422
1422
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY>
Original file line number Diff line number Diff line change @@ -4659,4 +4659,9 @@ public void testDB2SpecialRegisterDateTimeIssue1249() throws JSQLParserException
4659
4659
assertSqlCanBeParsedAndDeparsed ("SELECT * FROM test.abc WHERE col > CURRENT_DATE" , true );
4660
4660
assertSqlCanBeParsedAndDeparsed ("SELECT * FROM test.abc WHERE col > CURRENT DATE" , true );
4661
4661
}
4662
+
4663
+ @ Test
4664
+ public void testKeywordFilterIssue1255 () throws JSQLParserException {
4665
+ assertSqlCanBeParsedAndDeparsed ("SELECT col1 AS filter FROM table" );
4666
+ }
4662
4667
}
You can’t perform that action at this time.
0 commit comments