From: <leg...@at...> - 2003-10-03 09:56:30
|
Message: The following issue has been closed. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-371 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-371 Summary: Commit in SchemaUpdate Type: Bug Status: Closed Priority: Major Resolution: FIXED Project: Hibernate2 Components: toolset Fix Fors: 2.1 beta 4 Versions: 2.1 beta 3 Assignee: Reporter: xfgdf Created: Tue, 30 Sep 2003 10:29 AM Updated: Fri, 3 Oct 2003 4:55 AM Environment: JBoss 3.2 EJB stateless with container managed transaction. Oracle 8i with JdbcOdbc sun driver. Description: There is a call to commit() in Schema Update that throws an : java.sql.SQLException: You cannot commit with autocommit set! at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:494) at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:465) at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:99) If, for some reasons, this commit is necessary to access Metadata, Hibernate should call setAutocommit(false) before. Thanks... Adrien --------------------------------------------------------------------- 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 |