Update more tests for CockroachDB

This commit is contained in:
Rob Bygrave committed 2022-02-04 16:59:16 +13:00
1 parent d05dfae1d7
commit b8b83c2ec8
4 files changed
+15 -11

No files matched your search

@@ -3,6 +3,8 @@ package org.tests.query;
import io.ebean.BaseTestCase;
import io.ebean.DB;
import io.ebean.Query;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.Platform;
import org.junit.jupiter.api.Test;
import org.tests.model.basic.CKeyParent;
import org.tests.model.basic.ResetBasicData;
@@ -37,6 +39,7 @@ public class TestQueryAlias extends BaseTestCase {
assertThat(sql).contains("(myt0.one_key) in (select st0.one_key from ckey_parent st0)");
}
@IgnorePlatform(Platform.COCKROACH)
@Test
public void testExistsWithConcat() {
@@ -25,15 +25,15 @@ public class TestAggregationCount extends BaseTestCase {
@BeforeAll
public static void setup() {
TEventOne one = new TEventOne("first", TEventOne.Status.AA);
one.getLogs().add(new TEventMany("all", 1, 10));
one.getLogs().add(new TEventMany("be", 2, 12.2));
one.getLogs().add(new TEventMany("add", 3, 13));
one.getLogs().add(new TEventMany("all", 1, BigDecimal.valueOf(10)));
one.getLogs().add(new TEventMany("be", 2, BigDecimal.valueOf(12.2)));
one.getLogs().add(new TEventMany("add", 3, BigDecimal.valueOf(13)));
DB.save(one);
TEventOne two = new TEventOne("second", TEventOne.Status.AA);
two.getLogs().add(new TEventMany("at", 10, 10));
two.getLogs().add(new TEventMany("add", 30, 13));
two.getLogs().add(new TEventMany("alf", 30, 13));
two.getLogs().add(new TEventMany("at", 10, BigDecimal.valueOf(10)));
two.getLogs().add(new TEventMany("add", 30, BigDecimal.valueOf(13)));
two.getLogs().add(new TEventMany("alf", 30, BigDecimal.valueOf(13)));
DB.save(two);
TEventOne three = new TEventOne("thrird", TEventOne.Status.BB);