Skip to content

Commit

Permalink
Merge branch '3.11' of https://github.com/JumpMind/symmetric-ds.git i…
Browse files Browse the repository at this point in the history
…nto 3.11
  • Loading branch information
erilong committed Jan 3, 2020
2 parents f3bdd93 + 91ffc86 commit d3605f9
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1211,12 +1211,12 @@ public String getTruncateSql(Table table) {
String sql = null;
if (supportsTruncate) {
sql = "truncate table ";
String quote = getDdlBuilder().isDelimitedIdentifierModeOn() ? getDatabaseInfo().getDelimiterToken() : "";
sql += table.getQualifiedTableName(quote, getDatabaseInfo().getCatalogSeparator(), getDatabaseInfo().getSchemaSeparator());
} else {
log.info("Truncate is not supported on " + getName() + ". Changing to equivalent delete statement");
sql = "delete from ";
sql = getDeleteSql(table);
}
String quote = getDdlBuilder().isDelimitedIdentifierModeOn() ? getDatabaseInfo().getDelimiterToken() : "";
sql += table.getQualifiedTableName(quote, getDatabaseInfo().getCatalogSeparator(), getDatabaseInfo().getSchemaSeparator());

return sql;
}
Expand Down

0 comments on commit d3605f9

Please sign in to comment.