[#8402] Bad SQL generated when setting data type and nullability in PostgreSQL's ALTER TABLE .. ALTER .. SET statement
This commit is contained in:
parent
6965dd4d1f
commit
40715b25d8
@ -1410,7 +1410,8 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
|
||||
case POSTGRES: {
|
||||
AlterTableAlterStep<?> step = ctx.dsl().alterTable(table).alterColumn(alterColumn);
|
||||
ctx.visit(alterColumnType.nullable() ? step.dropNotNull() : step.setNotNull());
|
||||
ctx.visit(alterColumnType.nullable() ? step.dropNotNull() : step.setNotNull())
|
||||
.sql(';');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user