Issue Details (XML | Word | Printable)

Key: DBUTILS-4
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Stefan Fleiter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons DbUtils

[dbutils] ResultSetIterator should rethrow SQLExceptions as RuntimException

Created: 09/Nov/04 05:26 AM   Updated: 02/Jan/08 07:29 AM
Return to search
Component/s: None
Affects Version/s: Nightly Builds
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File SQLRuntimeException.patch 2004-11-29 07:58 AM Stefan Fleiter 4 kB
Text File SQLRuntimeException_2.patch 2005-02-14 02:48 AM Stefan Fleiter 2 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 32120


 Description  « Hide
SQLExceptions are not handled.
See TODOs in org.apache.commons.dbutils.ResultSetIterator.java

From discussion in COM-1333
I do not think that swallowing the exception would be a good decission, the user
(of DbUtils) should know something went wrong and we should not hide application
bugs and make debugging more difficult.

I would implement this myself if nobody objects.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 09:47 AM
Field Original Value New Value
issue.field.bugzillaimportkey 32120 12341859
Henri Yandell made changes - 16/May/06 11:29 AM
Component/s DbUtils [ 12311110 ]
Key COM-1707 DBUTILS-4
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Project Commons [ 12310458 ] Commons DbUtils [ 12310470 ]
Affects Version/s Nightly Builds [ 12311648 ]
Henri Yandell made changes - 16/May/06 12:18 PM
Affects Version/s Nightly Builds [ 12311745 ]
Henri Yandell made changes - 06/Jul/06 11:36 AM
Fix Version/s 1.1 [ 12311973 ]
Henri Yandell made changes - 02/Jan/08 07:29 AM
Status Resolved [ 5 ] Closed [ 6 ]