Skip to content

Commit

Permalink
TestQueryPaging example to H2 and Postgres due to use of nulls first
Browse files Browse the repository at this point in the history
nulls first isn't supports by mysql
  • Loading branch information
rbygrave committed Sep 20, 2024
1 parent bd06b57 commit 6d5f740
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ebean-test/src/test/java/org/tests/query/TestQueryPaging.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
import io.ebean.DB;
import io.ebean.OrderBy;
import io.ebean.Paging;
import io.ebean.annotation.Platform;
import io.ebean.test.LoggedSql;
import io.ebean.xtest.BaseTestCase;
import io.ebean.xtest.ForPlatform;
import org.junit.jupiter.api.Test;
import org.tests.model.basic.Contact;
import org.tests.model.basic.ResetBasicData;
Expand All @@ -15,6 +17,7 @@

class TestQueryPaging extends BaseTestCase {

@ForPlatform({Platform.H2, Platform.POSTGRES})
@Test
void example() {
var orderBy = OrderBy.of("lastName desc nulls first, firstName asc");
Expand Down

0 comments on commit 6d5f740

Please sign in to comment.