diff --git a/jpa/eclipselink.jpa.test.jse/src/org/eclipse/persistence/jpa/test/property/TestConvertResultToBoolean.java b/jpa/eclipselink.jpa.test.jse/src/org/eclipse/persistence/jpa/test/property/TestConvertResultToBoolean.java index abc010b085a..98c16d9febc 100644 --- a/jpa/eclipselink.jpa.test.jse/src/org/eclipse/persistence/jpa/test/property/TestConvertResultToBoolean.java +++ b/jpa/eclipselink.jpa.test.jse/src/org/eclipse/persistence/jpa/test/property/TestConvertResultToBoolean.java @@ -21,6 +21,7 @@ import javax.persistence.Query; import org.eclipse.persistence.config.PersistenceUnitProperties; +import org.eclipse.persistence.internal.helper.Helper; import org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl; import org.eclipse.persistence.jpa.test.framework.DDLGen; import org.eclipse.persistence.jpa.test.framework.Emf; @@ -74,9 +75,13 @@ public void testCASE_DisableConvertResultToBoolean() { if(platform.isDB2() || platform.isDerby()) { assertEquals(Integer.valueOf(1), intList.get(0)); assertEquals(Integer.valueOf(0), intList.get(1)); - } else if(platform.isOracle()) { + } else if(platform.isOracle() && !platform.isOracle23()) { assertEquals(new java.math.BigDecimal(1), intList.get(0)); assertEquals(new java.math.BigDecimal(0), intList.get(1)); + } else if(platform.isOracle() && platform.isOracle23()) { + //No conversion happens on Oracle23C platform + assertEquals(Boolean.TRUE, intList.get(0)); + assertEquals(Boolean.FALSE, intList.get(1)); } else { assertEquals(Long.valueOf(1), intList.get(0)); assertEquals(Long.valueOf(0), intList.get(1)); diff --git a/jpa/eclipselink.jpa.test/antbuild.properties b/jpa/eclipselink.jpa.test/antbuild.properties index 2fd46bea9ae..7caa22b0527 100644 --- a/jpa/eclipselink.jpa.test/antbuild.properties +++ b/jpa/eclipselink.jpa.test/antbuild.properties @@ -158,6 +158,7 @@ eclipselink.proxyauthentication.model=eclipselink-proxyauthentication-model #--------------------------------------- eclipselink.jpa.oracle=eclipselink-jpa-oracle oracle.sdoapi.jar=sdoapi.jar +oracle.ucp.jar=ucp.jar oracle.xdb.jar=xdb.jar oracle.xmlparser.jar=xmlparserv2.jar oracle.orai18n-mapping.jar=orai18n-mapping.jar diff --git a/jpa/eclipselink.jpa.test/antbuild.xml b/jpa/eclipselink.jpa.test/antbuild.xml index 4267808ee5e..88cbccbb07f 100644 --- a/jpa/eclipselink.jpa.test/antbuild.xml +++ b/jpa/eclipselink.jpa.test/antbuild.xml @@ -1739,6 +1739,7 @@ +