Opened 16 years ago
Closed 15 years ago
#2618 closed defect (worksforme)
Bug in OGR_L_SetAttributeFilter with long queries
Reported by: | jsaiz | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | 1.4.3 |
Severity: | blocker | Keywords: | |
Cc: |
Description
This is code extracted from my web-application, from the server part.
Selection="ogc_fid IN (574,587,584)";
err=OGR_L_SetAttributeFilter(poLayer,Selection);
where ogc_fid is an unique identifier. This code is working perfectly until the list grows. When the list has more than ten elements, the program blocks. The number of elements change, so i think that it could be a problem with the length of the array.
note: I have done the services in php and libs in C, and test them in gdal version 1.4.3 over a fedora core 6 (64 bits)and in gdal version 1.3.1 over fedora core 4(32 bits)
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 15 years ago
We really need additional information to proceed on this ticket (as noted above).
comment:3 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing for lack of followup from the reporter.
Which OGR driver is used by your poLayer object ? Is it specific to that driver or to all drivers ? Could you also test against a recently released GDAL version, for example 1.5.3 ? Any chance that you can reproduce this with a simple ogrinfo command on your dataset with the -where command line option and attach a simple dataset to reproduce it ?
I ask that because I can run successfully the following command on a PostGIS table: