Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnu-liguobin committed Dec 14, 2023
1 parent 02b6f95 commit 4b84142
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 4b84142

Please sign in to comment.