Skip to content

Commit

Permalink
0000906: Altering a default value for a varchar column on oracle fail…
Browse files Browse the repository at this point in the history
…s. Default value not quoted.
  • Loading branch information
chenson42 committed Nov 13, 2012
1 parent 27b0057 commit 51d4675
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -415,9 +415,10 @@ protected void processChange(Database currentModel, Database desiredModel,
writeTableAlterStmt(change.getChangedTable(), ddl);
ddl.append(" MODIFY (");
Column column = change.getChangedColumn();
column.setDefaultValue(change.getNewDefaultValue());
printIdentifier(getColumnName(column), ddl);
ddl.append(" DEFAULT ");
ddl.append(change.getNewDefaultValue());
ddl.append(" DEFAULT ");
writeColumnDefaultValue(change.getChangedTable(), column, ddl);
ddl.append(" )");
printEndOfStatement(ddl);
}
Expand Down

0 comments on commit 51d4675

Please sign in to comment.