Fix test UpdateQueryTest for PG

This commit is contained in:
rob bygrave
2020-05-08 23:22:23 +12:00
parent 592cb37693
commit 548cea432e
+5 -1
View File
@@ -116,7 +116,11 @@ public class UpdateQueryTest extends BaseTestCase {
assertThat(sql).hasSize(1);
assertThat(rows).isEqualTo(0);
assertSql(sql.get(0)).contains("update o_customer set status = ? where id in (?,?,?,?,?)"); // bind padding to 5
if (isPostgres()) {
assertSql(sql.get(0)).contains("update o_customer set status = ? where id = any(?)");
} else {
assertSql(sql.get(0)).contains("update o_customer set status = ? where id in (?,?,?,?,?)"); // bind padding to 5
}
}
@Test