[jOOQ/jOOQ#9420] Incorrect emulation of unnamed indexes

This commit is contained in:
Lukas Eder 2019-10-22 11:28:58 +02:00
parent 7df070357d
commit 41973fa392

View File

@ -88,7 +88,7 @@ class IndexImpl extends AbstractNamed implements Index {
}
IndexImpl(Name name, Table<?> table, OrderField<?>[] fields, Condition where, boolean unique) {
super(qualify(table, name), CommentImpl.NO_COMMENT);
super(name.empty() ? name : qualify(table, name), CommentImpl.NO_COMMENT);
this.table = table;
this.fields = Tools.sortFields(fields);