[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-3919) Hibernate uses DROP TABLE to drop temporary tables - it should use DROP TEMPORARY TABLE when using MySQL

Nik Everett (JIRA) noreply at atlassian.com
Tue Jun 16 13:36:33 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nik Everett updated HHH-3919:
-----------------------------

    Attachment: hibernate_mysql_drop_temporary_table.diff

This is biting me as well.  I think this patch fixes it, but I'm not really comfortable with the hibernate source code so I really can't be sure that it doesn't break something else.

I wrote this against http://anonsvn.jboss.org/repos/hibernate/core/ which seems to have errors when I run it with "JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/  mvn clean install".

On the other hand, the jar that I'm able to make with the distribution subproject seems to solve all of my problems and make a working, useful hibernate.

> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list