[ 
https://issues.apache.org/jira/browse/DERBY-3441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Waagan updated DERBY-3441:
-----------------------------------

    Attachment: derby-3441-1a-statement_reset.diff

'derby-3441-1a-statement_reset.diff' is the first draft of a reset procedure 
for a statement to be reused in a statement pool. There might be some room for 
refactoring in am.Statement, since the new method copies code from various 
other places.

Please review / comment.
I am not confident this is the best / correct way of doing it, but I can't see 
any errors caused by it either. Suggestions for how to test this is also 
welcome (or tests :) )!

> Determine and implement a proper procedure for resetting a prepared statement 
> for reuse in a statement pool
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3441
>                 URL: https://issues.apache.org/jira/browse/DERBY-3441
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JDBC, Network Client
>    Affects Versions: 10.4.0.0
>            Reporter: Kristian Waagan
>             Fix For: 10.4.0.0
>
>         Attachments: derby-3441-1a-statement_reset.diff
>
>
> Initial investigations indicate there are no existing suitable methods to 
> properly reset a prepared (or callable) statement for reuse with a statement 
> pool.
> A full reset is too heavy weight and defeats the purpose of statement 
> pooling, but a proper procedure should be achievable by reusing existing 
> pieces of code.
> Correctness is of course the most important thing.

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

Reply via email to