You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2009/01/25 17:06:59 UTC

[jira] Commented: (DBCP-264) clear batch when closing statement

    [ https://issues.apache.org/jira/browse/DBCP-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667099#action_12667099 ] 

Niall Pemberton commented on DBCP-264:
--------------------------------------

How about setting a flag when addBatch() is called and only trying to call clearBatch() if that flag is set?

> clear batch when closing statement
> ----------------------------------
>
>                 Key: DBCP-264
>                 URL: https://issues.apache.org/jira/browse/DBCP-264
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: Hauke Rabe
>             Fix For: 1.3
>
>         Attachments: clearBatchPatch.txt
>
>
> If a statement contains batch statements, these statements should be cleared on close. 
> Szenario:
> A pooled statement contains already some batch statements before an error occured. This error will be handled and finally the statement will be closed. Cause, it is a pooled statement the batch statements will be remaining in the pooled statement. On the next request the pooled statement will execute the batch statements from the first request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.