John: Would you be so kind as to file a bug on this one. That shouldn't be the case..
http://trac.osgeo.org/mapserver Thanks! Steve >>> On 7/5/2007 at 7:20 AM, in message <[EMAIL PROTECTED]>, "John B. Churchill" <[EMAIL PROTECTED]> wrote: > I figured out the problem I was having. It has to do with having > underscores "_" in the text field. If I replace my underscores with > hyphens "-", my query works. This seems to be an odd character for > Mapserver to weed out but that appears to be what is happening. > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Hi All, > > I'm having trouble executing an Attribute Query when I base the > query (qitem) on the "filename" field in my shapefile. I can choose any > other field and supply the appropriate qstring and everything works fine > but when I use the filename field I get a "no matching records" found error. > > The text in the long string in the address bar of the browser IS > complete and DOES match the value in the shapefile. Perhaps the text > values in the shapefile field are too long for MapServer or special > characters like the "." or "-" are causing a problem ? Can anyone > confirm or deny either of my theories about this or point to any other > possibilities ? > > The qstring is ... > p016r032_09-09-1986_lt5_doc.img > > The qitem is "filename" and it is a text field. > > The entire query string in the address bar is ... > http://localhost/cgi-bin/mapserv.exe?qlayer=landsat_4&myitem=landsat_4%2Cfilen > > ame&qstring=p016r032_09-09-1986_lt5_doc.img&map=C%3A%5Cms4w%5CApache%5Chtdocs%5Ci > mg_browser%5Cimg_browser.map&program=%2Fcgi-bin%2Fmapserv&mode=itemnquery&qitem=f > ilename > > The error is ... > msQueryByAttributes(): Search returned no results. No matching record(s) > found.
