Upgrade to HSQLDB 2.3.1
Replace `hsqldb:hsqldb:1.8.0.10` with `org.hsqldb:hsqldb:2.3.1` and fix breaking tests. Issue: SPR-10947
This commit is contained in:
@@ -109,7 +109,7 @@ public class HibernateSessionFlushingTests extends AbstractTransactionalJUnit4Sp
|
||||
// finally flushed (i.e., in production code)
|
||||
}
|
||||
|
||||
@Test(expected = GenericJDBCException.class)
|
||||
@Test(expected = ConstraintViolationException.class)
|
||||
public void updateSamWithNullDriversLicenseWithSessionFlush() {
|
||||
updateSamWithNullDriversLicense();
|
||||
// Manual flush is required to avoid false positive in test
|
||||
|
||||
@@ -2,7 +2,7 @@ DROP TABLE drivers_license IF EXISTS;
|
||||
DROP TABLE person IF EXISTS;
|
||||
|
||||
CREATE TABLE person (
|
||||
id INTEGER NOT NULL IDENTITY PRIMARY KEY,
|
||||
id INTEGER NOT NULL IDENTITY,
|
||||
name VARCHAR(50) NOT NULL,
|
||||
drivers_license_id INTEGER NOT NULL
|
||||
);
|
||||
@@ -10,7 +10,7 @@ CREATE UNIQUE INDEX person_name ON person(name);
|
||||
CREATE UNIQUE INDEX person_drivers_license_id ON person(drivers_license_id);
|
||||
|
||||
CREATE TABLE drivers_license (
|
||||
id INTEGER NOT NULL IDENTITY PRIMARY KEY,
|
||||
id INTEGER NOT NULL IDENTITY,
|
||||
license_number INTEGER NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX drivers_license_license_number ON drivers_license(license_number);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
CREATE TABLE enigma (
|
||||
id INTEGER NOT NULL IDENTITY PRIMARY KEY
|
||||
id INTEGER NOT NULL IDENTITY
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user