Revision: 5950
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=5950&view=rev
Author: manningr
Date: 2010-11-04 01:22:31 +0000 (Thu, 04 Nov 2010)
Log Message:
-----------
Fixed issue where the create index statement for child columns of a FK constraint was missing the table name that the index was being created for.
Modified Paths:
--------------
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java
Modified: trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java
===================================================================
--- trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java 2010-10-30 21:27:00 UTC (rev 5949)
+++ trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java 2010-11-04 01:22:31 UTC (rev 5950)
@@ -515,6 +515,7 @@
childIndexST = new StringTemplate(ST_CREATE_INDEX_STYLE_TWO);
ckIndexValuesMap = new HashMap<String, String>();
ckIndexValuesMap.put(ST_INDEX_NAME_KEY, "fk_child_idx");
+ ckIndexValuesMap.put(ST_TABLE_NAME_KEY, localTableName);
}
return DialectUtils.getAddForeignKeyConstraintSQL(fkST, fkValuesMap, childIndexST, ckIndexValuesMap,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|