Skip to content

Commit

Permalink
fixes #1470
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Feb 6, 2022
1 parent 11430af commit c707582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ String RelObjectNameWithoutValue() :
| tk=<K_ALGORITHM> | tk=<K_AT>
| tk=<K_BYTE> | tk=<K_CHAR> | tk=<K_CHANGE> | tk=<K_CHARACTER>
| tk=<K_CAST> | tk =<K_TRY_CAST> | tk=<K_COMMENT> | tk=<K_COSTS> | tk=<K_DISABLE> | tk=<K_DESC>
| tk=<K_DO> | tk=<K_EXTRACT> | tk=<K_FILTER> | tk=<K_FIRST> | tk=<K_FOLLOWING> | tk=<K_JSON>
| tk=<K_DO> | tk=<K_DEFAULT> | tk=<K_EXTRACT> | tk=<K_FILTER> | tk=<K_FIRST> | tk=<K_FOLLOWING> | tk=<K_JSON>
| tk=<K_LAST> | tk=<K_LEADING> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_XML>
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5001,4 +5001,9 @@ public void testWithIsolation() throws JSQLParserException {
assertEquals("Cs", isolation);
assertSqlCanBeParsedAndDeparsed(statement);
}

@Test
public void testKeywordDefaultIssue1470() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("INSERT INTO mytable (col1, col2, col3) VALUES (?, 'sadfsd', default)");
}
}

0 comments on commit c707582

Please sign in to comment.