From: <leg...@at...> - 2003-09-09 01:42:05
|
The following comment has been added to this issue: Author: Gavin King Created: Mon, 8 Sep 2003 4:55 PM Body: On a lot of of platforms, running DDL statements outside of autoCommit="true" is problematic. Perhaps it should be a config option. This is not a bug! --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-318 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-318 Summary: autocommit isn't always good Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.1 beta 3 Assignee: Reporter: Zeehond Created: Mon, 8 Sep 2003 3:31 PM Updated: Mon, 8 Sep 2003 3:31 PM Environment: jboss 3.2.2, oracle 9i, jdk 1.4.2 Description: there are problems with .commit() calls in SchemaUpdate class if autocommit is already set to 'true' on connection, commit() calls cause exceptions the solution that works for me is to include commit() calls in the following condition if (!conn.getAutoCommit()) { conn.commit(); } --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |