Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test
  • Loading branch information
jxnu-liguobin committed Dec 14, 2023
commit 4b84142596df35326423ca5ecba179a38d1fa3d6
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ public void testCreateViewWithColumnComment() throws JSQLParserException {
String stmt =
"CREATE VIEW v14(c1 COMMENT 'comment1', c2 COMMENT 'comment2') AS SELECT c1, C2 FROM t1 WITH READ ONLY";
assertSqlCanBeParsedAndDeparsed(stmt);

String stmt2 =
"CREATE VIEW v14(c1 COMMENT 'comment1', c2) AS SELECT c1, C2 FROM t1 WITH READ ONLY";
assertSqlCanBeParsedAndDeparsed(stmt2);

String stmt3 =
"CREATE VIEW v14(c1, c2) COMMENT = 'view' AS SELECT c1, C2 FROM t1 WITH READ ONLY";
assertSqlCanBeParsedAndDeparsed(stmt3);
}

@Test
Expand Down