mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Update tests only for Oracle
This commit is contained in:
1 parent
35a6ff7f02
commit
9af006b15b
14 files changed
+51
-41
No files matched your search
@@ -236,7 +236,7 @@ public class TestSoftDeleteBasic extends BaseTestCase {
|
||||
.query();
|
||||
|
||||
List<EBasicSoftDelete> list = query.findList();
|
||||
if (isMySql() || isMariaDB() || isSqlServer()) {
|
||||
if (isMySql() || isMariaDB() || isSqlServer() || isOracle()) {
|
||||
assertSql(query).contains("t0.deleted = 0");
|
||||
assertSql(query).contains("u1.deleted = 0");
|
||||
} else {
|
||||
@@ -272,7 +272,7 @@ public class TestSoftDeleteBasic extends BaseTestCase {
|
||||
|
||||
List<EBasicNoSDChild> list = query.findList();
|
||||
// Make sure that query includes that the child mustn't've been deleted
|
||||
if (isMySql() || isMariaDB() || isSqlServer()) {
|
||||
if (isMySql() || isMariaDB() || isSqlServer() || isOracle()) {
|
||||
assertSql(query).contains("u1.deleted = 0");
|
||||
assertSql(query).contains("u2.deleted = 0");
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ public class TestSoftDeleteOptionalRelationship extends BaseTestCase {
|
||||
|
||||
final List<String> sql = LoggedSql.stop();
|
||||
assertThat(sql).hasSize(1);
|
||||
if (isSqlServer() || isMySql() || isMariaDB()) {
|
||||
if (isSqlServer() || isMySql() || isMariaDB() || isOracle()) {
|
||||
assertThat(sql.get(0)).contains("left join esoft_del_z t1 on t1.id = t0.organization_id and t1.deleted = 0 where");
|
||||
} else {
|
||||
assertThat(sql.get(0)).contains("left join esoft_del_z t1 on t1.id = t0.organization_id and t1.deleted = false where");
|
||||
|
||||
Reference in new issue
Block a user