commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBUTILS-112) Provide DbUtils.rollbackQuietly() method
Date Mon, 28 Jul 2014 09:22:38 GMT

    [ https://issues.apache.org/jira/browse/DBUTILS-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14076036#comment-14076036
] 

Sebb commented on DBUTILS-112:
------------------------------

What is the use case is for ignoring rollback failure if the connection is going to be used
further?
Seems to me that any errors in an active connection need to be handled by the application.

Can you elaborate on why this is needed?

> Provide DbUtils.rollbackQuietly() method
> ----------------------------------------
>
>                 Key: DBUTILS-112
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-112
>             Project: Commons DbUtils
>          Issue Type: Wish
>    Affects Versions: 1.5
>            Reporter: alexander brack
>            Priority: Trivial
>              Labels: features
>             Fix For: 1.7
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> One has to surround DbUtils.rollback(conn) method-call with try/catch wich produces cluttered
code. Connection has to remain open, that's why DbUtils.rollbackAndCloseQuietly(conn) method
is ruled out.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message