Skip to content

Commit

Permalink
0001782: initial.load.create.first fails for tables with a unique ind…
Browse files Browse the repository at this point in the history
…ex on the primary key
  • Loading branch information
chenson42 committed Jun 27, 2014
1 parent 1a5c58b commit 3693ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -1199,12 +1199,13 @@ protected void createTable(Table table, StringBuilder ddl, boolean temporary, bo
writeTableCreationStmt(table, ddl);
writeTableCreationStmtEnding(table, ddl);

if (!databaseInfo.isPrimaryKeyEmbedded()) {
writeExternalPrimaryKeysCreateStmt(table, table.getPrimaryKeyColumns(), ddl);
}
if (!databaseInfo.isIndicesEmbedded()) {
writeExternalIndicesCreateStmt(table, ddl);
}

if (!databaseInfo.isPrimaryKeyEmbedded()) {
writeExternalPrimaryKeysCreateStmt(table, table.getPrimaryKeyColumns(), ddl);
}
}

/**
Expand Down
Expand Up @@ -95,6 +95,7 @@ public OracleDdlBuilder() {
databaseInfo.setDefaultSize(Types.BINARY, 254);
databaseInfo.setDefaultSize(Types.VARBINARY, 254);

databaseInfo.setPrimaryKeyEmbedded(false);
databaseInfo.setDateOverridesToTimestamp(true);
databaseInfo.setNonBlankCharColumnSpacePadded(true);
databaseInfo.setBlankCharColumnSpacePadded(true);
Expand Down

0 comments on commit 3693ccf

Please sign in to comment.