Fix unit tests failing on Oracle

Description

In 5.2, tests fail on Oracle:

hibernate-core:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 org.hibernate.jpa.test.lock.LockTest > testQueryTimeout FAILED org.hibernate.testing.junit4.FailureExpectedHandler$FailureExpectedTestPassedException org.hibernate.jpa.test.lock.LockTest > testQueryTimeoutEMProps FAILED org.hibernate.testing.junit4.FailureExpectedHandler$FailureExpectedTestPassedException org.hibernate.test.bytecode.enhancement.EnhancerTest > testLazyUnexpectedDelete FAILED org.hibernate.HibernateException at EnhancerTest.java:117 Caused by: javax.persistence.PersistenceException at EnhancerTest.java:117 Caused by: org.hibernate.exception.SQLGrammarException at EnhancerTest.java:117 Caused by: java.sql.SQLSyntaxErrorException at EnhancerTest.java:117 org.hibernate.test.extralazy.ExtraLazyTest > classMethod FAILED org.hibernate.testing.junit4.CallbackException Caused by: org.hibernate.MappingException org.hibernate.test.optlock.OptimisticLockTest > testOptimisticLockAllDelete FAILED java.lang.AssertionError at OptimisticLockTest.java:177 org.hibernate.test.optlock.OptimisticLockTest > testOptimisticLockDirtyDelete FAILED javax.persistence.PersistenceException at OptimisticLockTest.java:117 Caused by: org.hibernate.exception.ConstraintViolationException at OptimisticLockTest.java:117 Caused by: java.sql.SQLIntegrityConstraintViolationException at OptimisticLockTest.java:117 org.hibernate.test.procedure.OracleStoredProcedureTest > testNamedNativeQueryStoredProcedureRefCursor FAILED java.lang.IllegalArgumentException at OracleStoredProcedureTest.java:313 org.hibernate.test.procedure.OracleStoredProcedureTest > testNamedNativeQueryStoredProcedureRefCursorWithJDBC FAILED org.hibernate.exception.GenericJDBCException at OracleStoredProcedureTest.java:333 Caused by: java.sql.SQLException at OracleStoredProcedureTest.java:336 org.hibernate.test.typedescriptor.CharInNativeQueryTest > classMethod FAILED org.hibernate.testing.junit4.CallbackException Caused by: org.hibernate.service.spi.ServiceException Caused by: org.hibernate.exception.JDBCConnectionException Caused by: java.sql.SQLException Caused by: oracle.net.ns.NetException

hibernate-envers:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 org.hibernate.envers.test.integration.generated.GeneratedColumnTest > initData[0] FAILED javax.persistence.RollbackException at GeneratedColumnTest.java:40 Caused by: javax.persistence.PersistenceException at GeneratedColumnTest.java:40 Caused by: org.hibernate.exception.SQLGrammarException at GeneratedColumnTest.java:40 Caused by: java.sql.SQLSyntaxErrorException at GeneratedColumnTest.java:40 org.hibernate.envers.test.integration.generated.GeneratedColumnTest > getRevisionCounts[0] FAILED java.lang.IllegalArgumentException at GeneratedColumnTest.java:65 org.hibernate.envers.test.integration.generated.GeneratedColumnTest > testRevisionHistory[0] FAILED java.lang.IllegalArgumentException at GeneratedColumnTest.java:71 org.hibernate.envers.test.integration.generated.GeneratedColumnTest > initData[1] FAILED javax.persistence.RollbackException at GeneratedColumnTest.java:40 Caused by: javax.persistence.PersistenceException at GeneratedColumnTest.java:40 Caused by: org.hibernate.exception.SQLGrammarException at GeneratedColumnTest.java:40 Caused by: java.sql.SQLSyntaxErrorException at GeneratedColumnTest.java:40 org.hibernate.envers.test.integration.generated.GeneratedColumnTest > getRevisionCounts[1] FAILED java.lang.IllegalArgumentException at GeneratedColumnTest.java:65 org.hibernate.envers.test.integration.generated.GeneratedColumnTest > testRevisionHistory[1] FAILED java.lang.IllegalArgumentException at GeneratedColumnTest.java:71

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

5.2.0

Priority

Major