Skip to content

Commit b8ee752

Browse files
committed
fixes #1212
1 parent 1c2ac7a commit b8ee752

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
@@ -1337,7 +1337,7 @@ String RelObjectNameWithoutValue() :
13371337
| tk=<K_ALGORITHM>
13381338
| tk=<K_BYTE> | tk=<K_CHAR> | tk=<K_CHANGE> | tk=<K_CHARACTER>
13391339
| tk=<K_CAST> | tk=<K_COMMENT> | tk=<K_COSTS> | tk=<K_DISABLE> | tk=<K_DESC>
1340-
| tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING>
1340+
| tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING> | tk=<K_JSON>
13411341
| tk=<K_LAST> | tk=<K_LEADING> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
13421342
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_XML>
13431343
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>

src/test/java/net/sf/jsqlparser/statement/DescribeTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ public class DescribeTest {
1919
public void testDescribe() throws JSQLParserException {
2020
assertSqlCanBeParsedAndDeparsed("DESCRIBE foo.products");
2121
}
22+
23+
@Test
24+
public void testDescribeIssue1212() throws JSQLParserException {
25+
assertSqlCanBeParsedAndDeparsed("DESCRIBE file_azbs.productcategory.json");
26+
}
2227
}

0 commit comments

Comments
 (0)