Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0001240: No way to send schema changes in schema other, than public
  • Loading branch information
erilong committed Apr 21, 2014
1 parent 317a1e3 commit a859946
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -445,9 +445,13 @@ protected void startTable(Table table) {
csvWriter.setUseTextQualifier(true);
csvWriter.setForceQualifier(true);
} else if (format == Format.SQL) {
if (table.getCatalog() != null && table.getCatalog().equals(platform.getDefaultCatalog())) {
table.setCatalog(null);
}
if (table.getSchema() != null && table.getSchema().equals(platform.getDefaultSchema())) {
table.setSchema(null);
}
Table targetTable = table.copy();
targetTable.setSchema(schema);
targetTable.setCatalog(catalog);
insertSql = DmlStatementFactory.createDmlStatement(
compatible.toString().toLowerCase(), DmlType.INSERT, targetTable, useQuotedIdentifiers);
}
Expand Down

0 comments on commit a859946

Please sign in to comment.