[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3919?page=c...
]
Donnchadh O Donnabhain commented on HHH-3919:
---------------------------------------------
This patch is exactly what I had in mind and seems fine.
In my own case I was able to avoid the use of temporary tables altogether (there was only
one case where it was being used - a bulk update where the temporary table was actually
redundant ) by slightly modifying an HQL statement and the mapping file for that class
hierarchy.
Hibernate uses DROP TABLE to drop temporary tables - it should use
DROP TEMPORARY TABLE when using MySQL
--------------------------------------------------------------------------------------------------------
Key: HHH-3919
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3919
Project: Hibernate Core
Issue Type: Bug
Components: query-hql
Affects Versions: 3.3.1
Environment: MySQL 5.0.77
Reporter: Donnchadh O Donnabhain
Attachments: hibernate_mysql_drop_temporary_table.diff
DROP TABLE requires DROP TABLE permission whereas DROP TEMPORARY TABLE doesn't.
Currently the drop command is hardcoded as "drop table " in
AbstractStatementExecutor.java (line 177).
Something like getFactory().getDialect().getDropTemporaryTableString() is needed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira