]
Ohad Bruker moved HB-1570 to HHH-3153:
--------------------------------------
Affects Version/s: (was: 2.1.6)
3.2.5
Component/s: (was: core)
core
Workflow: Expanded Workflow (was: jira)
Key: HHH-3153 (was: HB-1570)
Project: Hibernate3 (was: Hibernate2)
CLONE -dropIndex doesn't cound on Dialect
-----------------------------------------
Key: HHH-3153
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3153
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.2.5
Environment: Hibernate 2.1.6, MySql 4.??
Reporter: Ohad Bruker
In class net.sf.hibernate.mapping.Index method
sqlDropString(Dialect dialect)
doesn't count on dialect, and always makes name of index qualified:
return "drop index " + StringHelper.qualify( table.getQualifiedName(dialect),
name);
This will fail at least in case of MySql DB, because it doesn't understand
{tablename}.{indexname} constructions, but {indexname} only.
I propose next edition:
return "drop index " + (dialect.qualifyIndexName() ? StringHelper.qualify(
table.getQualifiedName(dialect), name) : name);
Is it suitable?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: