Skip to content

Commit d54b82b

Browse files
committed
added for update test
1 parent 6ba57e5 commit d54b82b

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
@@ -1830,6 +1830,10 @@ public void testSelectInto1() throws JSQLParserException {
18301830
public void testSelectForUpdate() throws JSQLParserException {
18311831
assertSqlCanBeParsedAndDeparsed("SELECT * FROM user_table FOR UPDATE");
18321832
}
1833+
1834+
public void testSelectForUpdate2() throws JSQLParserException {
1835+
assertSqlCanBeParsedAndDeparsed("SELECT * FROM emp WHERE empno = ? FOR UPDATE");
1836+
}
18331837

18341838
public void testSelectJoin() throws JSQLParserException {
18351839
assertSqlCanBeParsedAndDeparsed("SELECT pg_class.relname, pg_attribute.attname, pg_constraint.conname "

0 commit comments

Comments
 (0)