From: <leg...@at...> - 2003-09-30 15:30:20
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- 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: Unassigned Priority: Major Project: Hibernate2 Components: toolset Versions: 2.1 beta 3 Assignee: Reporter: xfgdf Created: Tue, 30 Sep 2003 10:29 AM Updated: Tue, 30 Sep 2003 10:29 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 |