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 pmoen, 16 years ago

Keywords: mapscript querybyattributes savequery loadquery added
Priority: normalhigh
Summary: Mapscript saveQuery and loadQuery does not work with sql IN queryMapscript saveQuery and loadQuery does not work with queryByAttributes

comment:2 by dmorissette, 16 years ago

Milestone: 5.4 release

Could you please attach a small testcase (mapfile+data+script) to reproduce?

comment:3 by dmorissette, 15 years ago

Milestone: 5.4 release6.0 release

comment:4 by dmorissette, 15 years ago

Owner: changed from mapserverbugs to dmorissette
Note: See TracTickets for help on using tickets.