File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Also I would like to know about needed examples or documentation stuff.
41
41
42
42
## Extensions in the latest SNAPSHOT version 1.2
43
43
44
+ * allowed ** index** as object name
44
45
* switched to JavaCC ** modern template**
45
46
* switched to JDK 1.7
46
47
* introduced more AST node links
Original file line number Diff line number Diff line change @@ -961,7 +961,7 @@ String RelObjectNameWithoutValue() :
961
961
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_PERCENT> | tk=<K_PRIOR>
962
962
| tk=<K_SEPARATOR> | tk=<K_NO> | tk=<K_ACTION> | tk=<K_CASCADE> | tk=<K_END>
963
963
| tk=<K_TABLE> | tk=<K_DATETIMELITERAL> | tk=<K_COMMIT> | tk=<K_PRECISION>
964
- | tk=<K_INSERT>
964
+ | tk=<K_INSERT> | tk=<K_INDEX>
965
965
)
966
966
967
967
{ return tk.image; }
@@ -2974,7 +2974,7 @@ CreateTable CreateTable():
2974
2974
","
2975
2975
2976
2976
(
2977
- (
2977
+ LOOKAHEAD(3) (
2978
2978
tk=<K_INDEX>
2979
2979
sk3=RelObjectName()
2980
2980
colNames=ColumnsNamesList()
Original file line number Diff line number Diff line change @@ -2708,4 +2708,8 @@ public void testIssue522_3() throws JSQLParserException {
2708
2708
public void testIssue522_4 () throws JSQLParserException {
2709
2709
assertSqlCanBeParsedAndDeparsed ("SELECT CASE a + b WHEN -1 * 5 THEN 1 ELSE CASE b + c WHEN -1 * 6 THEN 2 ELSE 3 END END" );
2710
2710
}
2711
+
2712
+ public void testIssue554 () throws JSQLParserException {
2713
+ assertSqlCanBeParsedAndDeparsed ("SELECT T.INDEX AS INDEX133_ FROM myTable T" );
2714
+ }
2711
2715
}
You can’t perform that action at this time.
0 commit comments