File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/create Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2752,6 +2752,8 @@ String CreateParameter():
2752
2752
tk=<K_CASCADE> { retval = tk.image; }
2753
2753
|
2754
2754
tk=<K_DELETE> { retval = tk.image; }
2755
+ |
2756
+ tk=<K_UPDATE> { retval = tk.image; }
2755
2757
|
2756
2758
"=" { retval = "="; }
2757
2759
|
Original file line number Diff line number Diff line change @@ -176,6 +176,10 @@ public void testCreateTableForeignKey6() throws JSQLParserException {
176
176
assertSqlCanBeParsedAndDeparsed ("CREATE TABLE test (id long, fkey long references another_table (id))" );
177
177
}
178
178
179
+ public void testCreateTableMySqlOnUpdateCurrentTimestamp () throws JSQLParserException {
180
+ assertSqlCanBeParsedAndDeparsed ("CREATE TABLE test (applied timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP)" );
181
+ }
182
+
179
183
public void testRUBiSCreateList () throws Exception {
180
184
BufferedReader in = new BufferedReader (new InputStreamReader (CreateTableTest .class .getResourceAsStream ("/RUBiS-create-requests.txt" )));
181
185
TablesNamesFinder tablesNamesFinder = new TablesNamesFinder ();
You can’t perform that action at this time.
0 commit comments