mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Modify tests to use isPostgresCompatible() (to effectively include Yugabyte)
This commit is contained in:
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)");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user