Skip to content

Commit dc779ca

Browse files
committed
fixes #643
1 parent 6cd5481 commit dc779ca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ String RelObjectNameWithoutValue() :
979979
| tk=<K_INSERT> | tk=<K_INDEX> | tk=<K_PRIMARY> | tk=<K_ENABLE>
980980
| tk=<K_UNSIGNED>
981981
| tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_ISNULL>
982+
| tk=<K_ZONE>
982983
)
983984

984985
{ return tk.image; }

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,4 +3221,9 @@ public void testMultiPartNamesIssue163() throws JSQLParserException {
32213221
public void testMultiPartNamesIssue608() throws JSQLParserException {
32223222
assertSqlCanBeParsedAndDeparsed("SELECT @@session.tx_read_only");
32233223
}
3224+
3225+
@Test
3226+
public void testMultiPartNamesIssue643() throws JSQLParserException {
3227+
assertSqlCanBeParsedAndDeparsed("SELECT id, bid, pid, devnum, pointdesc, sysid, zone, sort FROM fault ORDER BY id DESC LIMIT ?, ?");
3228+
}
32243229
}

0 commit comments

Comments
 (0)