SchemaCreationTest fails on DB2 due to wrong expected statement
Description
relates to
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
@Former user Could you please cherry pick this to 5.0? Thanks
o.h.t.schemaupdate.inheritance.tableperclass.SchemaCreationTest fails on DB2 because it expects query that contains
alter table category add constraint
andunique (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)