Message:
The following issue has been closed.
Resolver: Gavin King
Date: Mon, 8 Dec 2003 5:30 PM
This would not be desirable.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-532
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-532
Summary: SchemaUpdate fails to throw exception when updates fail
Type: Bug
Status: Closed
Priority: Minor
Resolution: REJECTED
Project: Hibernate2
Components:
toolset
Versions:
2.0.3
Assignee:
Reporter: Andrew J Delpha
Created: Mon, 8 Dec 2003 5:26 PM
Updated: Mon, 8 Dec 2003 5:30 PM
Environment: RedHat Linux 9.1, Oracle 9i, Hibernate 2.0.3, Sun Jdk1.4.1_04
Description:
When running the schema update tool, it will fail to throw an exception if a SQLException is thrown when doing an update. It catches and logs the exception, but doesn't throw one.
In particular, in the Hibernate 2.0.3 source code, this in on line 121 of net.sf.hibernate.tool.hbm2ddl.SchemaUpdate in the execute method, in the catch inside the for loop. I believe it should also throw a hibernate exception there.
Just downloaded and looked at the 20031208 snapshot - it appears that the SchemaUpdate tool there also only logs the exceptions. Is this intentional?
I believe it is desirable to have the SchemaUpdate fail if there's a problem for scripting automated builds and such.
---------------------------------------------------------------------
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
|