DB2: Fix EqlParserTests similar to HANA

This commit is contained in:
Roland Praml
2022-01-07 12:55:58 +01:00
parent fc027b2975
commit 2ea51d3705
@@ -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<Customer> 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<Customer> 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<Customer> 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<Customer> 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<Customer> 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<Customer> query = parse("where not (name = 'Rob' and status = 'N')");