As per https://issues.redhat.com/browse/WFLY-16864, the https://github.com/emmartins/quickstart/tree/sqlscriptruntwice (kitchensink folder) contains a test that when run against WildFly with Hibernate ORM 6.1.5.Final (or earlier 6.x ORM releases), will reproduce the failure mentioned in WFLY-16864
The first run of the database script is from https://github.com/hibernate/hibernate-orm/blob/09299e1f417a193dabf0e020f33166522d67ccad/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java#L532 and the second is from https://github.com/hibernate/hibernate-orm/blob/09299e1f417a193dabf0e020f33166522d67ccad/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java#L553 I just reproduced this again but didn’t verify that the same lines of code are reached. |