Skip to content

Commit

Permalink
0005393: Prevented SqlException in MySqlDdlReader.getTriggers()
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Aug 3, 2022
1 parent 3a50480 commit dd9ec0d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -319,7 +319,7 @@ public Trigger mapRow(Row row) {
}, tableName, catalog);
for (final Trigger trigger : triggers) {
String name = trigger.getName();
String sourceSql = "SHOW CREATE TRIGGER " + catalog + "." + name;
String sourceSql = "SHOW CREATE TRIGGER `" + catalog + "`." + name;
sqlTemplate.query(sourceSql, new ISqlRowMapper<Trigger>() {
public Trigger mapRow(Row row) {
trigger.setSource(row.getString("SQL Original Statement"));
Expand Down

0 comments on commit dd9ec0d

Please sign in to comment.