Skip to content

Commit

Permalink
0005086: Wrong logic for deleting triggers on SQL Anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
joshahicks committed Oct 11, 2021
1 parent cd17711 commit 181b6bf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -137,7 +137,7 @@ public void dropRequiredDatabaseObjects() {
public void removeTrigger(StringBuilder sqlBuffer, final String catalogName, String schemaName,
final String triggerName, String tableName, ISqlTransaction transaction) {
schemaName = schemaName == null ? "" : (schemaName + ".");
final String sql = "drop trigger " + schemaName + triggerName;
final String sql = "drop trigger " + Table.getFullyQualifiedTableName(catalogName, schemaName, tableName) + "." + triggerName;
logSql(sql, sqlBuffer);
if (parameterService.is(ParameterConstants.AUTO_SYNC_TRIGGERS)) {
log.info("Dropping {} trigger for {}", triggerName, Table.getFullyQualifiedTableName(catalogName, schemaName, tableName));
Expand Down

0 comments on commit 181b6bf

Please sign in to comment.