HHH-7577 Dialect's supportsNotNullUnique not working when false
This commit is contained in:
parent
cb1069a3d3
commit
588d4be45b
|
@ -394,7 +394,7 @@ public class Table implements RelationalModel, Serializable {
|
|||
|
||||
boolean useUniqueConstraint = column.isUnique() &&
|
||||
dialect.supportsUnique() &&
|
||||
( !column.isNullable() || dialect.supportsNotNullUnique() );
|
||||
( column.isNullable() || dialect.supportsNotNullUnique() );
|
||||
if ( useUniqueConstraint ) {
|
||||
alter.append( " unique" );
|
||||
}
|
||||
|
@ -495,7 +495,7 @@ public class Table implements RelationalModel, Serializable {
|
|||
}
|
||||
|
||||
boolean useUniqueConstraint = col.isUnique() &&
|
||||
( !col.isNullable() || dialect.supportsNotNullUnique() );
|
||||
( col.isNullable() || dialect.supportsNotNullUnique() );
|
||||
if ( useUniqueConstraint ) {
|
||||
if ( dialect.supportsUnique() ) {
|
||||
buf.append( " unique" );
|
||||
|
|
|
@ -200,7 +200,7 @@ public class Table extends AbstractTableSpecification implements Exportable {
|
|||
}
|
||||
|
||||
boolean useUniqueConstraint = col.isUnique() &&
|
||||
( !col.isNullable() || dialect.supportsNotNullUnique() );
|
||||
( col.isNullable() || dialect.supportsNotNullUnique() );
|
||||
if ( useUniqueConstraint ) {
|
||||
if ( dialect.supportsUnique() ) {
|
||||
buf.append( " unique" );
|
||||
|
|
Loading…
Reference in New Issue