[#8402] Bad SQL generated when setting data type and nullability in PostgreSQL's ALTER TABLE .. ALTER .. SET statement

This commit is contained in:
lukaseder 2019-03-25 11:56:19 +01:00
parent 6965dd4d1f
commit 40715b25d8

View File

@ -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;
}
}