Opened 21 years ago
Last modified 17 years ago
#480 closed defect
[MapScript] QueryByAttributes() requires qitem arg even if unused — at Initial Version
Reported by: | dmorissette | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | MapScript-PHP | Version: | 4.1 |
Severity: | normal | Keywords: | |
Cc: | mapserver@… |
Description
It seems that MapScript's QueryByAttributes() (v4.0) requires a non-empty value for the qitem field even if you use a logical expression which doesn't need a qitem. Here is the problem report from the mailing list: -------- Original Message -------- Subject: AW: AW: [Mapserver-users] PHP/Mapscript - Mapserver 4.0 - $oLayer->queryByAttributes() Date: Wed, 12 Nov 2003 09:52:20 +0100 From: Alexander Gabriel <alexander.gabriel@blubbermania.com> To: Mapserver List <mapserver-users@lists.gis.umn.edu> CC: Daniel Morissette <morissette@dmsolutions.ca> Hi, [code] $query = '([GEMARKUNG] = 7725 AND [FLUR] = 0 AND \'[FLSTNR]\' = \'3000\')'; @$myLayer->queryByAttributes("ANYVALIDITEMINTHESHAPE", $query, MS_MULTIPLE); [/code] works. But is that really the way it should be? I'd say, this is just a workaround but i don't know C and cannot say, if it is intent to give the method any dummy-values if they aren't needed. perhaps someone makes a patch to fix this. thx Alexander Gabriel -----Ursprungliche Nachricht----- Von: Daniel Morissette [mailto:morissette@dmsolutions.ca] Gesendet: Freitag, 31. Oktober 2003 20:27 An: Alexander Gabriel Cc: mapserver-users@lists.gis.umn.edu Betreff: Re: AW: [Mapserver-users] PHP/Mapscript - Mapserver 4.0 - $oLayer->queryByAttributes() Alexander Gabriel wrote: > Hello, > > thx for your reply. > i've tried > > [code] > $query = '([GEMARKUNG] = 7725 AND [FLUR] = 0 AND \'[FLSTNR]\' = \'3000\')'; > @$myLayer->queryByAttributes("", $query, MS_MULTIPLE); > [/code] > > But it didn't work :( >
Note:
See TracTickets
for help on using tickets.