<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>when I do a querybyrect I receive the following 
error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><STRONG>Warning</STRONG>: [MapServer Error]: msPOSTGISLayerGetShape(): 
Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY 
CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR') from 
(SELECT the_geom,gid,type,name,value from edtlyr_pozzi_1 WHERE site_id = 7799) 
as foo WHERE gid = 40716 -ERROR: cursor "mycursor" already exists <BR>More 
Help:<BR>Error with POSTGIS data variable. You specified ''.<BR>Standard ways of 
specifiying are : <BR>(1) 'geometry_column from geometry_table' <BR>(2) 
'geometry_column from (<sub query>) as foo using unique <column 
name> using SRID=<srid#>' <BR><BR>Make sure you put in the 'using 
unique <column name>' and 'using SRID=#' clauses in. <BR></DIV>
<DIV><FONT face=Arial size=2>I have just upgraded the software to:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>postgis 0.8.0, Mapserver 4.0.1, Postgres 
7.4</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>my previous platform was</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>postgis 0.7.5 Mapserver 4.0, Postgres 
7.3</FONT></DIV>
<DIV><FONT face=Arial size=2>in this platform there were no 
problems.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I see another question like this in the maling list 
but not answered. Is this a bug or something in changed in postgis 
0.8.0.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have noticed that the problem appear only when I 
ask more than one object in the query.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>RS</FONT></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>