Author: [email protected]
Date: Wed Feb 18 11:51:53 2009
New Revision: 2944

Modified:
   trunk/src/ca/sqlpower/architect/ddl/MySqlDDLGenerator.java

Log:
The MySQLDDLGenerator was not using the qualified name for a table when creating the DDL for an index. The problem was if you were trying to create an index a table in a non-default catalog, then the DDL could fail because it would look for the table in the default catalog. You would particularly run into this in MatchMaker if you tried to create the result table in a catalog different from the catalog containing the table you want to dedupe.

Modified: trunk/src/ca/sqlpower/architect/ddl/MySqlDDLGenerator.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/ddl/MySqlDDLGenerator.java  (original)
+++ trunk/src/ca/sqlpower/architect/ddl/MySqlDDLGenerator.java Wed Feb 18 11:51:53 2009
@@ -460,7 +460,7 @@
             print(" USING " + index.getType());
         }
         print("\n ON ");
-        print(index.getParentTable().getName());
+        print(toQualifiedName(index.getParentTable()));
         print("\n ( ");

         boolean first = true;

Reply via email to