Skip to content

Commit 4b84142

Browse files
committed
Add test
1 parent 02b6f95 commit 4b84142

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/net/sf/jsqlparser/statement/create/CreateViewTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ public void testCreateViewWithColumnComment() throws JSQLParserException {
216216
String stmt =
217217
"CREATE VIEW v14(c1 COMMENT 'comment1', c2 COMMENT 'comment2') AS SELECT c1, C2 FROM t1 WITH READ ONLY";
218218
assertSqlCanBeParsedAndDeparsed(stmt);
219+
220+
String stmt2 =
221+
"CREATE VIEW v14(c1 COMMENT 'comment1', c2) AS SELECT c1, C2 FROM t1 WITH READ ONLY";
222+
assertSqlCanBeParsedAndDeparsed(stmt2);
223+
224+
String stmt3 =
225+
"CREATE VIEW v14(c1, c2) COMMENT = 'view' AS SELECT c1, C2 FROM t1 WITH READ ONLY";
226+
assertSqlCanBeParsedAndDeparsed(stmt3);
219227
}
220228

221229
@Test

0 commit comments

Comments
 (0)