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

Rick Hillegas updated DERBY-6206:
---------------------------------

    Attachment: derby-6206-05-aa-implSQL.diff

Attaching derby-6206-05-aa-implSQL.diff. This patch fixes some mutability 
problems in the org.apache.derby.impl.sql package. I am running tests now.

Two types of problems are addressed in GenericResultDescription and 
GenericPreparedStatement:

1) Mutable Timestamps are copied. This copying occurs once per statement 
execution.

2) Arrays of parameter and column types are copied. New type getters are 
introduced which return a single type rather than the whole array. The new 
getters are used when the type is retrieved more than once per statement 
execution.


Touches the following files:

M       java/engine/org/apache/derby/iapi/sql/ResultDescription.java
M       java/engine/org/apache/derby/iapi/sql/PreparedStatement.java
M       java/engine/org/apache/derby/impl/sql/GenericResultDescription.java
M       java/engine/org/apache/derby/impl/sql/execute/GenericAggregator.java
M       java/engine/org/apache/derby/impl/sql/GenericPreparedStatement.java
M       java/engine/org/apache/derby/impl/jdbc/EmbedPreparedStatement.java

                
> Cleanup suspect coding practices in misc Derby packages
> -------------------------------------------------------
>
>                 Key: DERBY-6206
>                 URL: https://issues.apache.org/jira/browse/DERBY-6206
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.11.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>            Priority: Minor
>         Attachments: derby-6206-01-aa-NetworkServerControlImpl.diff, 
> derby-6206-02-aa-ExecutionContext.diff, derby-6206-03-aa-XPLAIN.diff, 
> derby-6206-04-aa-implJDBC.diff, derby-6206-04-ab-implJDBC.diff, 
> derby-6206-05-aa-implSQL.diff
>
>
> Similar to DERBY-6177.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to