Opened 16 years ago
Last modified 15 years ago
#2778 new defect
Mapscript saveQuery and loadQuery does not work with queryByAttributes
Reported by: | pmoen | Owned by: | dmorissette |
---|---|---|---|
Priority: | high | Milestone: | 6.0 release |
Component: | MapScript-PHP | Version: | 5.2 |
Severity: | normal | Keywords: | mapscript querybyattributes savequery loadquery |
Cc: |
Description
My php code to save the query is
$err = $qlayer->queryByAttributes("parcel_id","(pacel_id IN (1500,1501,1502,1503,1504)",MS_MULTIPLE);
if($err = MS_SUCESS){
$map->saveQuery($unique_name);
}
When saving the query with map->saveQuery, the file is written and everything seems fine. My php code to load the query like
$map->loadQuery($unique_name);
When loading the query as above, the php process goes wild and uses 100% of processor and eventually times out. The loading and saving of queries seem to work fine when using a query by point or a query by box.
Downgrading to 5.0.2 makes everything work as expected.
Change History (4)
comment:1 by , 15 years ago
Keywords: | mapscript querybyattributes savequery loadquery added |
---|---|
Priority: | normal → high |
Summary: | Mapscript saveQuery and loadQuery does not work with sql IN query → Mapscript saveQuery and loadQuery does not work with queryByAttributes |
comment:2 by , 15 years ago
Milestone: | → 5.4 release |
---|
comment:3 by , 15 years ago
Milestone: | 5.4 release → 6.0 release |
---|
comment:4 by , 15 years ago
Owner: | changed from | to
---|
Could you please attach a small testcase (mapfile+data+script) to reproduce?