Skip to content

Commit 9779742

Browse files
committed
tests #754
1 parent 86ea601 commit 9779742

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3619,4 +3619,9 @@ public void testLongQualifiedNamesIssue763_2() throws JSQLParserException {
36193619
Statement parse = CCJSqlParserUtil.parse(new StringReader("SELECT mongodb.test.test.intField, postgres.test.test.intField, postgres.test.test.datefield FROM mongodb.test.test JOIN postgres.postgres.test.test ON mongodb.test.test.intField = postgres.test.test.intField WHERE mongodb.test.test.intField = 123"));
36203620
System.out.println(parse.toString());
36213621
}
3622+
3623+
@Test
3624+
public void testSubQueryAliasIssue754() throws JSQLParserException {
3625+
assertSqlCanBeParsedAndDeparsed("SELECT C0 FROM T0 INNER JOIN T1 ON C1 = C0 INNER JOIN (SELECT W1 FROM T2) S1 ON S1.W1 = C0 ORDER BY C0");
3626+
}
36223627
}

0 commit comments

Comments
 (0)