Modify tests to use isPostgresCompatible() (to effectively include Yugabyte)

This commit is contained in:
Rob Bygrave committed 2022-02-02 23:25:13 +13:00
1 parent 4899f23773
commit 389f2bcd2f
25 files changed
+37 -49

No files matched your search

@@ -139,7 +139,7 @@ public class TestHistoryInsert extends BaseTestCase {
assertThat(sql).hasSize(1);
if (isH2()) {
assertThat(sql.get(0)).contains("and t0.sys_period_start < ? and (t0.sys_period_end >= ? or t0.sys_period_end is null)");
} else if (isPostgres()) {
} else if (isPostgresCompatible()) {
assertThat(sql.get(0)).contains("and lower(t0.sys_period) < ? and (upper(t0.sys_period) >= ? or upper(t0.sys_period) is null)");
}