View Issue Details

IDProjectCategoryView StatusLast Update
0000218SymmetricDSBugpublic2010-01-19 16:56
ReporterAssigned Tochenson  
Priorityhigh 
Status closedResolutionfixed 
Summary0000218: Invalid trigger sql gets generated for MySQL when trigger has source_catalog_name defined
Description"Invalid trigger sql gets generated for MySQL when trigger has source_catalog_name defined. I fixed this by modifying the getTransactionTriggerExpression method in MySqlDbDialect. {code} Index: src/main/java/org/jumpmind/symmetric/db/mysql/MySqlDbDialect.java =================================================================== --- src/main/java/org/jumpmind/symmetric/db/mysql/MySqlDbDialect.java (revision 3175) +++ src/main/java/org/jumpmind/symmetric/db/mysql/MySqlDbDialect.java (working copy) @@ -129,12 +129,7 @@ @Override public String getTransactionTriggerExpression(String defaultCatalog, String defaultSchema, Trigger trigger) { - if (trigger.getSourceCatalogName() != null) { - defaultCatalog = defaultCatalog + "".""; - } else { - defaultCatalog = """"; - } - return defaultCatalog + getTransactionFunctionName() + ""()""; + return getTransactionFunctionName() + ""()""; } @Override {code}"
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change