Skip to content

Commit

Permalink
0003146: Wildcards for schema and table on Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 14, 2017
1 parent 29dc47e commit bec9c35
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -20,6 +20,8 @@
*/
package org.jumpmind.symmetric.db.oracle;

import static org.apache.commons.lang.StringUtils.isBlank;

import java.text.ParseException;
import java.util.Date;

Expand Down Expand Up @@ -80,6 +82,9 @@ protected void buildSqlReplacementTokens() {
@Override
protected boolean doesTriggerExistOnPlatform(String catalog, String schema, String tableName,
String triggerName) {
if (isBlank(schema)) {
schema = platform.getDefaultSchema();
}
return platform.getSqlTemplate().queryForInt("select count(*) " + SQL_SELECT_TRIGGERS,
new Object[] { triggerName, tableName, schema }) > 0;
}
Expand Down

0 comments on commit bec9c35

Please sign in to comment.