Skip to content

Commit 001d665

Browse files
committed
test for #154 included
1 parent 157eebf commit 001d665

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,4 +1783,8 @@ public void testRowConstructor1() throws JSQLParserException {
17831783
public void testRowConstructor2() throws JSQLParserException {
17841784
assertSqlCanBeParsedAndDeparsed("SELECT * FROM t1 WHERE ROW(col1, col2) = (SELECT col3, col4 FROM t2 WHERE id = 10)");
17851785
}
1786+
1787+
public void testIssue154() throws JSQLParserException {
1788+
assertSqlCanBeParsedAndDeparsed("SELECT d.id, d.uuid, d.name, d.amount, d.percentage, d.modified_time FROM discount d LEFT OUTER JOIN discount_category dc ON d.id = dc.discount_id WHERE merchant_id = ? AND deleted = ? AND dc.discount_id IS NULL AND modified_time < ? AND modified_time >= ? ORDER BY modified_time");
1789+
}
17861790
}

0 commit comments

Comments
 (0)