Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Geoserver 2.1-RC1
using Geotool 2.7-beta1
Update generated from openlayers (hosted in a GWT env)
Updated applied to oracle datastore.
Description
line 3762
setPreparedFilterValues(ps, toSQL, i, cx);
passes the value i as the offset for the index to use to apply the filter.
this value is then used on line 2970
dialect.setValue( value, binding, ps, offset + i+1, cx );
(at this point offset as the value of i and i has the value of zero) it generates an Invalid column index.
This is because i (in the original scope) was tracking source attribute value index, not query variable. These two values go out of sync on line 3704,when the primary key is skipped.
If line 3762 was replaced by
setPreparedFilterValues(ps, toSQL, j, cx);
the problem would be solved.