Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339861 - [DB] HorizontalAuditClassMapping.detachAttributes does not set values for listSize fields
Summary: [DB] HorizontalAuditClassMapping.detachAttributes does not set values for lis...
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Caspar D. CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 06:25 EDT by Caspar D. CLA
Modified: 2011-06-23 03:39 EDT (History)
1 user (show)

See Also:
stepper: review+


Attachments
Patch (949 bytes, patch)
2011-03-14 23:05 EDT, Caspar D. CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caspar D. CLA 2011-03-14 06:25:24 EDT
This method fetches a preparedStatement from the cache, which is
parameterized for every field, including the listSize fields. But
those listSize fields never get set.

This occasionally causes:

java.sql.SQLException: At least one parameter to the current statement
is uninitialized.

(I would expect the error to occur always, but it doesn't...)
Comment 1 Caspar D. CLA 2011-03-14 23:05:40 EDT
Created attachment 191185 [details]
Patch
Comment 2 Eike Stepper CLA 2011-03-15 06:07:08 EDT
Good catch ;-)
Comment 3 Eike Stepper CLA 2011-03-15 06:19:57 EDT
Committed revision 7537:
- trunk/plugins/org.eclipse.emf.cdo.server.db
Comment 4 Eike Stepper CLA 2011-03-15 06:20:07 EDT
Resolving for Caspar...
Comment 5 Eike Stepper CLA 2011-06-23 03:39:51 EDT
Available in R20110608-1407