Skip to content

Commit 6d5f740

Browse files
committed
TestQueryPaging example to H2 and Postgres due to use of nulls first
nulls first isn't supports by mysql
1 parent bd06b57 commit 6d5f740

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ebean-test/src/test/java/org/tests/query/TestQueryPaging.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
import io.ebean.DB;
44
import io.ebean.OrderBy;
55
import io.ebean.Paging;
6+
import io.ebean.annotation.Platform;
67
import io.ebean.test.LoggedSql;
78
import io.ebean.xtest.BaseTestCase;
9+
import io.ebean.xtest.ForPlatform;
810
import org.junit.jupiter.api.Test;
911
import org.tests.model.basic.Contact;
1012
import org.tests.model.basic.ResetBasicData;
@@ -15,6 +17,7 @@
1517

1618
class TestQueryPaging extends BaseTestCase {
1719

20+
@ForPlatform({Platform.H2, Platform.POSTGRES})
1821
@Test
1922
void example() {
2023
var orderBy = OrderBy.of("lastName desc nulls first, firstName asc");

0 commit comments

Comments
 (0)