Skip to content

Commit f276b33

Browse files
committed
added commit keyword
1 parent 2056cb0 commit f276b33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/net/sf/jsqlparser/test/create/CreateTableTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public void testCreateTablePrimaryKey() throws JSQLParserException {
9191
String statement = "CREATE TABLE test (id INT UNSIGNED NOT NULL AUTO_INCREMENT, string VARCHAR (20), user_id INT UNSIGNED, CONSTRAINT pk_name PRIMARY KEY (id))";
9292
assertSqlCanBeParsedAndDeparsed(statement);
9393
}
94+
95+
public void testCreateTableParams() throws JSQLParserException {
96+
assertSqlCanBeParsedAndDeparsed("CREATE TEMPORARY TABLE T1(PROCESSID VARCHAR(32)) ON COMMIT PRESERVE ROWS");
97+
}
9498

9599
public void testRUBiSCreateList() throws Exception {
96100
BufferedReader in = new BufferedReader(new InputStreamReader(CreateTableTest.class.getResourceAsStream("/RUBiS-create-requests.txt")));

0 commit comments

Comments
 (0)