[ http://issues.apache.org/jira/browse/DERBY-1292?page=all ]
James F. Adams updated DERBY-1292:
----------------------------------
Attachment: DERBY-1292.diff
The attached patch contains the following:
1) The addition of a copy method to org.apache.derby.client.am.ColumnMetaData.
2) Modifications to org.apache.derby.client.am.PreparedStatement to hold on to
a copy of the column meta data for each entry used in batch updates.
3) A test was added to
org.apache.derbyTestingfunctionTests.tests.derbynet.prepStmt.
I ran derbynet/prepStmt as well as derbyall and did not see any new failures.
> ClassCastException in ClientDriver when using CLOB columns and batch updates
> ----------------------------------------------------------------------------
>
> Key: DERBY-1292
> URL: http://issues.apache.org/jira/browse/DERBY-1292
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.1.2.1
> Reporter: Gerald Khin
> Assigned To: James F. Adams
> Attachments: DERBY-1292.diff
>
>
> java.lang.ClassCastException: java.lang.String
> at
> org.apache.derby.client.net.NetStatementRequest.computeProtocolTypesAndLengths(Unknown
> Source)
> at
> org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(Unknown
> Source)
> at org.apache.derby.client.net.NetStatementRequest.writeExecute(Unknown
> Source)
> at
> org.apache.derby.client.net.NetPreparedStatement.writeExecute_(Unknown Source)
> at org.apache.derby.client.am.PreparedStatement.writeExecute(Unknown
> Source)
> at
> org.apache.derby.client.am.PreparedStatement.executeBatchRequestX(Unknown
> Source)
> at org.apache.derby.client.am.PreparedStatement.executeBatchX(Unknown
> Source)
> at org.apache.derby.client.am.PreparedStatement.executeBatch(Unknown
> Source)
> at CCEBatchUpdateRepro.doInserts(CCEBatchUpdateRepro.java:71)
> at CCEBatchUpdateRepro.main(CCEBatchUpdateRepro.java:27)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira