Skip to content

Commit ab4054c

Browse files
committed
fixes #945
1 parent e1ff1f0 commit ab4054c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Also I would like to know about needed examples or documentation stuff.
8181
* support for **WITH(NOLOCK)**
8282
* support for **VIEW** as object name
8383
* functions hold now multipart names
84+
* support for **DISABLE** as object name
8485

8586
## Extensions of JSqlParser releases
8687

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ String RelObjectNameWithoutValue() :
11241124
{ Token tk = null; }
11251125
{
11261126
(tk=<S_IDENTIFIER> | tk=<S_QUOTED_IDENTIFIER> | tk=<K_BYTE> | tk=<K_CHAR> | tk=<K_CHANGE> | tk=<K_CHARACTER>
1127-
| tk=<K_CAST> | tk=<K_COMMENT> | tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING>
1127+
| tk=<K_CAST> | tk=<K_COMMENT> | tk=<K_DISABLE> | tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FIRST> | tk=<K_FOLLOWING>
11281128
| tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
11291129
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_XML>
11301130
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>

src/test/java/net/sf/jsqlparser/statement/insert/InsertTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,9 @@ public void testNextValIssue773() throws JSQLParserException {
308308
public void testBackslashEscapingIssue827() throws JSQLParserException {
309309
assertSqlCanBeParsedAndDeparsed("INSERT INTO my_table (my_column_1, my_column_2) VALUES ('my_value_1\\\\', 'my_value_2')");
310310
}
311+
312+
@Test
313+
public void testDisableKeywordIssue945() throws JSQLParserException {
314+
assertSqlCanBeParsedAndDeparsed("INSERT INTO SOMESCHEMA.TEST (DISABLE, TESTCOLUMN) VALUES (1, 1)");
315+
}
311316
}

0 commit comments

Comments
 (0)