[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4486) Account for MySQL's <DROP TEMPORARY TABLE> statement
Gail Badner (JIRA)
noreply at atlassian.com
Thu Oct 8 22:48:41 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34137#action_34137 ]
Gail Badner commented on HHH-4486:
----------------------------------
https://jira.jboss.org/jira/browse/JBPAPP-2900
> Account for MySQL's <DROP TEMPORARY TABLE> statement
> ----------------------------------------------------
>
> Key: HHH-4486
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4486
> Project: Hibernate Core
> Issue Type: Bug
> Components: core, query-hql
> Reporter: Steve Ebersole
> Assignee: Steve Ebersole
> Fix For: 3.2.x, 3.3.x, 3.5
>
>
> MySQL has a statement <DROP TEMPORARY TABLE> that is meant to be the corollary to <CREATE TEMPORARY TABLE>. The important aspect is that the inclusion of the TEMPORARY keyword in each bypasses the implicit transaction commit from DDL execution. Currently we use <CREATE TEMPORARY TABLE>, which is ok for use within a transaction, but then <DROP TABLE> which causes an implicit commit (and actually causes an immediate failure within an XA transaction). For MySQL we should use <CREATE TEMPORARY TABLE> and <DROP TEMPORARY TABLE>.
> <DROP TEMPORARY TABLE> documentation -> http://dev.mysql.com/doc/refman/5.0/en/drop-table.html
> Implicit commit documentation -> http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html
--
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