Skip to content

Commit

Permalink
Fix the two test cases (missing white space)
Browse files Browse the repository at this point in the history
  • Loading branch information
manticore-projects committed May 9, 2022
1 parent 2ce4a7f commit ca82997
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/test/java/net/sf/jsqlparser/statement/insert/InsertTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,23 +408,21 @@ public void testKeywordDefaultIssue1470() throws JSQLParserException {

@Test
public void testInsertUnionSelectIssue1491() throws JSQLParserException {
//@todo: Make this work
// assertSqlCanBeParsedAndDeparsed(
// "insert into table1 (tf1,tf2,tf2)\n" +
// "select sf1,sf2,sf3 from s1" +
// "union " +
// "select rf1,rf2,rf2 from r1"
// , true
// );

//@todo: Make this work
// assertSqlCanBeParsedAndDeparsed(
// "insert into table1 (tf1,tf2,tf2)\n" +
// "( select sf1,sf2,sf3 from s1" +
// "union " +
// "select rf1,rf2,rf2 from r1 )"
// , true
// );
assertSqlCanBeParsedAndDeparsed(
"insert into table1 (tf1,tf2,tf2)\n" +
"select sf1,sf2,sf3 from s1\n" +
"union\n" +
"select rf1,rf2,rf2 from r1\n"
, true
);

assertSqlCanBeParsedAndDeparsed(
"insert into table1 (tf1,tf2,tf2)\n" +
"( select sf1,sf2,sf3 from s1\n" +
"union\n" +
"select rf1,rf2,rf2 from r1\n)"
, true
);

assertSqlCanBeParsedAndDeparsed(
"insert into table1 (tf1,tf2,tf2)\n" +
Expand Down

0 comments on commit ca82997

Please sign in to comment.