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 ba3a64f commit 16071dc
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -45,10 +45,7 @@ protected boolean doesTriggerExistOnPlatform(String catalogName, String schemaNa
String tableName, String triggerName) {
boolean exists = (jdbcTemplate.queryForInt(
"select count(*) from INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_NAME = ?",
new Object[] { triggerName }) > 0)
|| (jdbcTemplate.queryForInt(
"select count(*) from INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = ?",
new Object[] { String.format("%s_CONFIG", triggerName) }) > 0);
new Object[] { triggerName }) > 0);
return exists;
}

Expand Down

0 comments on commit 16071dc

Please sign in to comment.