File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1633,7 +1633,7 @@ String RelObjectNameWithoutValue() :
1633
1633
{ Token tk = null; }
1634
1634
{
1635
1635
(tk=<S_IDENTIFIER> | tk=<S_QUOTED_IDENTIFIER>
1636
- | tk=<K_ALGORITHM>
1636
+ | tk=<K_ALGORITHM> | tk=<K_AT>
1637
1637
| tk=<K_BYTE> | tk=<K_CHAR> | tk=<K_CHANGE> | tk=<K_CHARACTER>
1638
1638
| tk=<K_CAST> | tk=<K_COMMENT> | tk=<K_COSTS> | tk=<K_DISABLE> | tk=<K_DESC>
1639
1639
| tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FILTER> | tk=<K_FIRST> | tk=<K_FOLLOWING> | tk=<K_JSON>
@@ -3763,7 +3763,7 @@ Expression PrimaryExpression() #PrimaryExpression:
3763
3763
retval=castExpr;
3764
3764
} )*
3765
3765
3766
- ( <K_AT> <K_DATETIMELITERAL> <K_ZONE> timezoneRightExpr=PrimaryExpression() {
3766
+ ( LOOKAHEAD(2) <K_AT> <K_DATETIMELITERAL> <K_ZONE> timezoneRightExpr=PrimaryExpression() {
3767
3767
if (timezoneExpr == null)
3768
3768
timezoneExpr = new TimezoneExpression();
3769
3769
Original file line number Diff line number Diff line change @@ -4956,4 +4956,9 @@ public void testLogicalExpressionSelectItemIssue1381() throws JSQLParserExceptio
4956
4956
assertSqlCanBeParsedAndDeparsed (
4957
4957
"SELECT ( 1 = 1 ) AND ( 1 = 2 )" , true );
4958
4958
}
4959
+
4960
+ @ Test
4961
+ public void testKeywordAtIssue1414 () throws JSQLParserException {
4962
+ assertSqlCanBeParsedAndDeparsed ("SELECT * FROM table1 at" );
4963
+ }
4959
4964
}
You can’t perform that action at this time.
0 commit comments