Hi,
I'm using hibernate in an unconventionnal way, which is as an helper to generate some sql compatible with any database, mainly thanks to the dialects.
Usually I can find what I want in the Dialect class and subclasses, but I have a problem with the drop index sql builder.
I found it in the org.hibernate.mapping.Index class:
Code:
return "drop index " +
StringHelper.qualify(
table.getQualifiedName( dialect, defaultCatalog, defaultSchema ),
name
);
This piece of code generate code like:
Code:
drop index tableName.indexName
This is valid for some languages, but definiely not for all despie the fact that is takes Dialect as parameter.
For instance a valid synthax for sqlServer would be:
Code:
DROP INDEX index_name ON table_name
Is it a bug? Or have I missed something?
Thank you very much by advance for your help.
Guillaume