#2003 - Bump ebean-datasource to 4.9.2 with optional driver

This commit is contained in:
rob bygrave
2020-05-04 12:41:14 +12:00
parent 5cae425b09
commit f2178bf0a6
3 changed files with 34 additions and 42 deletions
@@ -43,9 +43,13 @@ public class TestDeleteByQuery extends BaseTestCase {
assertThat(rows).isEqualTo(3);
List<String> sql = LoggedSqlCollector.stop();
assertSql(sql.get(0)).contains("delete from bbookmark_user where id in (select t0.id from bbookmark_user t0 where t0.name like");
if (isH2() || isPostgres()) {
assertSql(sql.get(0)).contains("limit 3");
if (isSqlServer()) {
assertSql(sql.get(0)).contains("delete from bbookmark_user where id in (select top 3 t0.id from bbookmark_user t0 where t0.name like ");
} else {
assertSql(sql.get(0)).contains("delete from bbookmark_user where id in (select t0.id from bbookmark_user t0 where t0.name like");
if (isH2() || isPostgres()) {
assertSql(sql.get(0)).contains("limit 3");
}
}
final int rowsAfter = DB.find(BBookmarkUser.class)