aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabine Heider2013-04-11 06:53:33 (EDT)
committertware2013-05-16 10:18:38 (EDT)
commit7ecb5f8abce828b16bd164d1380375925275598f (patch)
tree2b7f2d156982ec1a83e0e3d46ffa50899ed77ebc
parent34210b39c6e957adb6c6504fcb68f03907ab4e68 (diff)
downloadeclipselink.runtime-7ecb5f8abce828b16bd164d1380375925275598f.zip
eclipselink.runtime-7ecb5f8abce828b16bd164d1380375925275598f.tar.gz
eclipselink.runtime-7ecb5f8abce828b16bd164d1380375925275598f.tar.bz2
Bug 407285 - JPA test JUnitJPQLComplexTestSuite.caseTypeTest fails on
Sybase ASE due to implicit type conversion Signed-off-by: Sabine Heider <sabine.heider@sap.com>
-rw-r--r--jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/jpql/JUnitJPQLComplexTestSuite.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/jpql/JUnitJPQLComplexTestSuite.java b/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/jpql/JUnitJPQLComplexTestSuite.java
index dcf1fbb..f100bea 100644
--- a/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/jpql/JUnitJPQLComplexTestSuite.java
+++ b/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/jpql/JUnitJPQLComplexTestSuite.java
@@ -3068,6 +3068,14 @@ public class JUnitJPQLComplexTestSuite extends JUnitTestCase
closeEntityManager(em);
return;
}
+ // Bug 407285
+ if (((Session) JUnitTestCase.getServerSession()).getPlatform().isSybase())
+ {
+ warning("The test 'caseTypeTest' is not supported on Sybase, "
+ + "because Sybase does not support implicit type conversion from Varchar to Integer.");
+ closeEntityManager(em);
+ return;
+ }
String jpqlString2 = "SELECT case e.firstName when 'Bob' then 1 when 'Jill' then 2 else 0 end + 1 FROM Employee e";
em.createQuery(jpqlString2).getResultList();