Skip to content

Commit 3a87625

Browse files
committed
Update test TestQueryJoinOnFormula, restrict platforms for specific test
Restrict the new test_findCount_formulaJoin_subqueryWithOrderBy_issue3686 to H2 and Postgres for now. Not supported on Oracle and SQL Server.
1 parent 231b52b commit 3a87625

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ebean-test/src/test/java/org/tests/query/joins/TestQueryJoinOnFormula.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import io.ebean.Query;
55
import io.ebean.test.LoggedSql;
66
import io.ebean.xtest.BaseTestCase;
7+
import io.ebean.xtest.ForPlatform;
78
import org.junit.jupiter.api.BeforeEach;
89
import org.junit.jupiter.api.Test;
910
import org.tests.model.basic.Order;
@@ -16,6 +17,8 @@
1617
import java.sql.Date;
1718
import java.util.List;
1819

20+
import static io.ebean.annotation.Platform.H2;
21+
import static io.ebean.annotation.Platform.POSTGRES;
1922
import static org.assertj.core.api.Assertions.assertThat;
2023
import static org.junit.jupiter.api.Assertions.assertEquals;
2124

@@ -341,6 +344,7 @@ public void test_ChildPersonParentFindCount() {
341344
* Before the fix, lastIndexOf(" order by ") matched the ORDER BY inside the
342345
* IN subquery, stripping its closing parenthesis and producing invalid SQL.
343346
*/
347+
@ForPlatform({H2, POSTGRES})
344348
@Test
345349
public void test_findCount_formulaJoin_subqueryWithOrderBy_issue3686() {
346350

0 commit comments

Comments
 (0)