Skip to content

Commit

Permalink
remove unneeded table check
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 27, 2011
1 parent 16071dc commit 258164b
Showing 1 changed file with 0 additions and 11 deletions.
Expand Up @@ -55,9 +55,6 @@ public void removeTrigger(StringBuilder sqlBuffer, String catalogName, String sc
final String dropSql = String.format("DROP TRIGGER %s", triggerName);
logSql(dropSql, sqlBuffer);

final String dropTable = String.format("DROP TABLE IF EXISTS %s_CONFIG", triggerName);
logSql(dropTable, sqlBuffer);

if (parameterService.is(ParameterConstants.AUTO_SYNC_TRIGGERS)) {
try {
int count = jdbcTemplate.update(dropSql);
Expand All @@ -67,14 +64,6 @@ public void removeTrigger(StringBuilder sqlBuffer, String catalogName, String sc
} catch (Exception e) {
log.warn("TriggerDropError", triggerName, e.getMessage());
}
try {
int count = jdbcTemplate.update(dropTable);
if (count > 0) {
log.info("TableDropped", triggerName);
}
} catch (Exception e) {
log.warn("TriggerDropError", triggerName, e.getMessage());
}
}
}

Expand Down

0 comments on commit 258164b

Please sign in to comment.