Skip to content

Commit

Permalink
Update tests for DB2 forUpdate()
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Jul 16, 2024
1 parent 0a95ac7 commit 6785d57
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ public void testForUpdate_when_alreadyInPCAsReference_usingLock() {
assertThat(sql.get(0)).contains("from o_order");
if (isSqlServer()) {
assertThat(sql.get(1)).contains("from o_customer t0 with (updlock,nowait) where t0.id = ?");
} else if (isDb2()) {
assertThat(sql.get(1)).contains("from o_customer t0 where t0.id = ? with rs use and keep update locks");
} else {
assertThat(sql.get(1)).contains("from o_customer t0 where t0.id = ? for update");
}
Expand Down

0 comments on commit 6785d57

Please sign in to comment.