Skip to content

Commit 3e74010

Browse files
committed
introduced test for 437
1 parent 1dabcbc commit 3e74010

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
@@ -2600,4 +2600,8 @@ public void testMysqlMultipleIndexHints() throws JSQLParserException {
26002600
public void testProblemIssue435() throws JSQLParserException {
26012601
assertSqlCanBeParsedAndDeparsed("SELECT if(z, 'a', 'b') AS business_type FROM mytable1");
26022602
}
2603+
2604+
public void testProblemIssue437Index() throws JSQLParserException {
2605+
assertSqlCanBeParsedAndDeparsed("select count(id) from p_custom_data ignore index(pri) where tenant_id=28257 and entity_id=92609 and delete_flg=0 and ( (dbc_relation_2 = 52701) and (dbc_relation_2 in ( select id from a_order where tenant_id = 28257 and 1=1 ) ) ) order by id desc, id desc", true);
2606+
}
26032607
}

0 commit comments

Comments
 (0)