From 2ea51d3705e38c8b82ce21d581ced916e67cf666 Mon Sep 17 00:00:00 2001 From: Roland Praml Date: Fri, 7 Jan 2022 12:55:58 +0100 Subject: [PATCH] DB2: Fix EqlParserTests similar to HANA --- .../ebeaninternal/server/grammer/EqlParserTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ebean-test/src/test/java/io/ebeaninternal/server/grammer/EqlParserTest.java b/ebean-test/src/test/java/io/ebeaninternal/server/grammer/EqlParserTest.java index 38fceeefc..f0c2d1149 100644 --- a/ebean-test/src/test/java/io/ebeaninternal/server/grammer/EqlParserTest.java +++ b/ebean-test/src/test/java/io/ebeaninternal/server/grammer/EqlParserTest.java @@ -231,7 +231,7 @@ public class EqlParserTest extends BaseTestCase { } @Test - @IgnorePlatform(Platform.HANA) // The HANA JDBC driver checks the field length on binding and rejects 'NEW' + @IgnorePlatform({Platform.HANA, Platform.DB2}) // The HANA JDBC driver checks the field length on binding and rejects 'NEW' public void where_or1() { Query query = parse("where name = 'Rob' or (status = 'NEW' and smallnote is null)"); @@ -241,7 +241,7 @@ public class EqlParserTest extends BaseTestCase { } @Test - @ForPlatform(Platform.HANA) + @ForPlatform({Platform.HANA, Platform.DB2})) public void where_or1_hana() { Query query = parse("where name = 'Rob' or (status = 'N' and smallnote is null)"); @@ -251,7 +251,7 @@ public class EqlParserTest extends BaseTestCase { } @Test - @IgnorePlatform(Platform.HANA) // The HANA JDBC driver checks the field length on binding and rejects 'NEW' + @IgnorePlatform({Platform.HANA, Platform.DB2})) // The HANA & DB2 JDBC driver checks the field length on binding and rejects 'NEW' public void where_or2() { Query query = parse("where (name = 'Rob' or status = 'NEW') and smallnote is null"); @@ -261,7 +261,7 @@ public class EqlParserTest extends BaseTestCase { } @Test - @ForPlatform(Platform.HANA) + @ForPlatform({Platform.HANA, Platform.DB2})) public void where_or2_hana() { Query query = parse("where (name = 'Rob' or status = 'N') and smallnote is null"); @@ -271,7 +271,7 @@ public class EqlParserTest extends BaseTestCase { } @Test - @IgnorePlatform(Platform.HANA) // The HANA JDBC driver checks the field length on binding and rejects 'NEW' + @IgnorePlatform({Platform.HANA, Platform.DB2})) // The HANA & DB2 JDBC driver checks the field length on binding and rejects 'NEW' public void test_simplifyExpressions() { Query query = parse("where not (name = 'Rob' and status = 'NEW')"); @@ -288,7 +288,7 @@ public class EqlParserTest extends BaseTestCase { } @Test - @ForPlatform(Platform.HANA) + @ForPlatform({Platform.HANA, Platform.DB2}) public void test_simplifyExpressions_hana() { Query query = parse("where not (name = 'Rob' and status = 'N')");