Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339861

Summary: [DB] HorizontalAuditClassMapping.detachAttributes does not set values for listSize fields
Product: [Modeling] EMF Reporter: Caspar D. <caspar_d>
Component: cdo.dbAssignee: Caspar D. <caspar_d>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3 CC: saulius.tvarijonas
Version: 4.0Flags: stepper: review+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

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