Skip to content

Commit

Permalink
0002110: On firebird ddl fails if table column switches from NOT NULL…
Browse files Browse the repository at this point in the history
… to NULLABLE
  • Loading branch information
chenson42 committed Dec 23, 2014
1 parent 431cf13 commit 9135a30
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -347,9 +347,9 @@ protected void processChange(Database currentModel, Database desiredModel,
ColumnRequiredChange change, StringBuilder ddl) {
boolean required = !change.getChangedColumn().isRequired();
ddl.append("update RDB$RELATION_FIELDS set RDB$NULL_FLAG = " + (required ? "1" : "0")
+ " where (RDB$FIELD_NAME = '" + change.getChangedColumn().getName()
+ "') and (RDB$RELATION_NAME = '"
+ getFullyQualifiedTableNameShorten(change.getChangedTable()) + "')");
+ " where RDB$FIELD_NAME = '" + change.getChangedColumn().getName()
+ "' and RDB$RELATION_NAME = '"
+ change.getChangedTable().getName() + "'");
printEndOfStatement(ddl);
}

Expand Down

0 comments on commit 9135a30

Please sign in to comment.