SchemaCreationTest fails on DB2 due to wrong expected statement

Description

o.h.t.schemaupdate.inheritance.tableperclass.SchemaCreationTest fails on DB2 because it expects query that contains alter table category add constraint and unique (code)

if (statement.toLowerCase().startsWith("alter table category add constraint") && statement.toLowerCase().contains("unique (code)")) { isUniqueConstraintCreated = true; }

but DB2 uses

create unique index UK_jqke9jk9nte5ria5dww0l3thu on CATEGORY (code)

Activity

Show:

Vlad Mihalcea April 6, 2016 at 1:04 PM

Applied PR on master, 5.1, and 5.0.

Martin Simka March 24, 2016 at 12:39 PM

master PR: https://github.com/hibernate/hibernate-orm/pull/1311

Could you please cherry pick this to 5.0? Thanks

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created March 24, 2016 at 12:33 PM
Updated June 2, 2016 at 3:51 AM
Resolved April 6, 2016 at 1:04 PM