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:
Rob Bygrave
2020-02-22 09:28:34 +13:00
committed by GitHub
parent 2db95f909d
commit 907d36123d
35 changed files with 252 additions and 224 deletions
@@ -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");
}