mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Revert "#2908 - Fix tests for Oracle and DB2 with maxRows and forUpdate()
This commit is contained in:
@@ -19,7 +19,6 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class TestQueryForUpdate extends BaseTestCase {
|
||||
|
||||
@IgnorePlatform({Platform.DB2})
|
||||
@Test
|
||||
public void testForUpdate() {
|
||||
|
||||
@@ -36,12 +35,11 @@ public class TestQueryForUpdate extends BaseTestCase {
|
||||
|
||||
if (isSqlServer()) {
|
||||
assertThat(sqlOf(query)).contains("with (updlock)");
|
||||
} else {
|
||||
} else if (!isDb2()){
|
||||
assertThat(sqlOf(query)).contains("for update");
|
||||
}
|
||||
}
|
||||
|
||||
@IgnorePlatform({Platform.DB2})
|
||||
@Test
|
||||
public void testForUpdate_withLimit() {
|
||||
ResetBasicData.reset();
|
||||
@@ -58,7 +56,8 @@ public class TestQueryForUpdate extends BaseTestCase {
|
||||
|
||||
if (isSqlServer()) {
|
||||
assertThat(sqlOf(query)).contains("with (updlock)");
|
||||
} else {
|
||||
} else if (!isOracle() && !isDb2()) {
|
||||
// Oracle does not support FOR UPDATE with FETCH
|
||||
assertThat(sqlOf(query)).contains("for update");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user