Quoting Armin Burger <armin.burger@libero.it>:
> It did not appear
> when using MapServer Win binary 3.6 or running MapServer 4.0 on Linux.
> Nor did I have this  problem with a shapefile (using any combination).

Hum - this is very strange.  The only difference between the 4.0 CVS version 
and the CVS 3.6 version is 2 lines of code.  I would expect that if 3.6 were 
working then 4.0 would work as well.  
There was a kuffuffle with the 3.6 CVS - it had an old version of mappostgis.c 
in it for a while.  What is the date on your working win 3.6 version (it should 
be "version of June 12/2003")?


Its unfortunate that 4.0 works under linux but not under windows.  This is 
going to make it very difficult to debug.  

But, pulling out my crystal ball, I'm going to predict that you have an old 
libpq.dll on your windows system.  I've attached a recent version.

If that doesnt help, its going to be difficult to debug since I do all my 
developement on linux - not windows.  
If you are using the GetShape() function that looks for a particular shape 
(usually by OID), then the problem is probably in that function (its the least 
tested because its used rarely).    I must admit, I dont often use itemnquerys 
so something might have slipped by...


dave




