mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
OraclePlatform update (ANSI row limiting with OFFSET), Oracle11Platform for old behaviour (#1951)
* #1947 - Oracle change to use concat operator rather than function * #1947 - setMaxRows(1).findIds() under Oracle returns wrong result * #1950 - Change OraclePlatform to use ANSI row limiting - OFFSET and NEXT ROWS, old platform as Oracle11Platform * Revert test default to H2 * #1947 - Oracle & Oracle11 platform
This commit is contained in:
@@ -219,7 +219,7 @@ public class TestRawSqlOrmQuery extends BaseTestCase {
|
||||
assertSql(query).contains("top 100 ");
|
||||
assertSql(query).contains("order by o.ship_date desc");
|
||||
} else if (isOracle()) {
|
||||
assertSql(query).contains("a where rownum <= 100 )");
|
||||
assertSql(query).contains("fetch next 100 rows only");
|
||||
} else {
|
||||
assertSql(query).contains("order by o.ship_date desc limit 100");
|
||||
}
|
||||
@@ -254,7 +254,7 @@ public class TestRawSqlOrmQuery extends BaseTestCase {
|
||||
assertSql(query).contains("top 100 ");
|
||||
assertSql(query).contains("order by o.ship_date desc, o.id");
|
||||
} else if (isOracle()) {
|
||||
assertSql(query).contains("a where rownum <= 100 )");
|
||||
assertSql(query).contains("fetch next 100 rows only");
|
||||
} else {
|
||||
assertSql(query).contains("order by o.ship_date desc, o.id limit 100");
|
||||
}
|
||||
@@ -356,7 +356,7 @@ public class TestRawSqlOrmQuery extends BaseTestCase {
|
||||
assertThat(sqlOf(query)).contains("select top 100 ");
|
||||
assertThat(sqlOf(query)).contains("order by o.id desc");
|
||||
} else if (isOracle()) {
|
||||
assertThat(sqlOf(query)).contains("a where rownum <= 100 )");
|
||||
assertThat(sqlOf(query)).contains("fetch next 100 rows only");
|
||||
} else {
|
||||
assertThat(sqlOf(query)).contains("order by o.id desc limit 100");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user