Navigation Menu

Skip to content

Commit

Permalink
0003188: The ddl builder for Sybase ASE is ignoring the unique='true'
Browse files Browse the repository at this point in the history
setting on the column even though the keyword unique does exist
  • Loading branch information
chenson42 committed Jul 6, 2017
1 parent a6fb465 commit 4a6fbcd
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -120,6 +120,11 @@ protected void writeColumn(Table table, Column column, StringBuilder ddl) {
ddl.append(" ");
ddl.append(getSqlType(column));
writeColumnDefaultValueStmt(table, column, ddl);

if (column.isUnique() && databaseInfo.isUniqueEmbedded()) {
writeColumnUniqueStmt(ddl);
}

// Sybase does not like NULL/NOT NULL and IDENTITY together
if (column.isAutoIncrement()) {
ddl.append(" ");
Expand Down

0 comments on commit 4a6fbcd

Please sign in to comment.