Skip to content

Commit 8e61a18

Browse files
committed
fixes #859
1 parent c6441e0 commit 8e61a18

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ Not all names should be allowed for aliases.
11201120
String RelObjectNameWithoutValue() :
11211121
{ Token tk = null; }
11221122
{
1123-
(tk=<S_IDENTIFIER> | tk=<S_QUOTED_IDENTIFIER> | tk=<K_BYTE> | tk=<K_CHAR>
1123+
(tk=<S_IDENTIFIER> | tk=<S_QUOTED_IDENTIFIER> | tk=<K_BYTE> | tk=<K_CHAR> | tk=<K_CHANGE>
11241124
| tk=<K_CAST> | tk=<K_COMMENT> | tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING>
11251125
| tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
11261126
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_XML>

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3851,4 +3851,9 @@ public void testLimitClauseDroppedIssue845() throws JSQLParserException {
38513851
public void testLimitClauseDroppedIssue845_2() throws JSQLParserException {
38523852
assertSqlCanBeParsedAndDeparsed("SELECT * FROM employee ORDER BY emp_id LIMIT 10 OFFSET 2");
38533853
}
3854+
3855+
@Test
3856+
public void testChangeKeywordIssue859() throws JSQLParserException {
3857+
assertSqlCanBeParsedAndDeparsed("SELECT * FROM CHANGE.TEST");
3858+
}
38543859
}

0 commit comments

Comments
 (0)