Ticket #1647 (closed defect: wontfix)
Postgis- cursor "mycursor" already exists in mapserver 4.8.1 ok in 4.6.1
| Reported by: | bengt.nilsson@… | Owned by: | refractions |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PostGIS Interface | Version: | 4.8 |
| Severity: | critical | Keywords: | |
| Cc: | mark@… |
Description
Hi, I am using postgresql-8.0.3 and postgis-1.0.4. Requesting more than one layer in Mapserver 4.8.1 I get : '<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException> msDrawMap(): Image handling error. Failed to draw layer named 'k92_strandlinje'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary (force_collection(force_2d(the_geom)),'NDR'),gid::text from k92_strandlin_polygon WHERE the_geom && setSRID('BOX3D (10.202777506987 55.5016934171322,12.9972224354854 57.798407114202) '::BOX3D, 4326 )' <br><br> Postgresql reports the error as 'ERROR: cursor "mycursor" already exists '<br><br> More Help:<br><br> Error with POSTGIS data variable. You specified '&lt;check your .map file&gt;'.<br> Standard ways of specifiying are : <br> (1) 'geometry_column from geometry_table' <br> (2) 'geometry_column from (&lt;sub query&gt;) as foo using unique &lt;column name&gt; using SRID=&lt;srid#&gt;' <br><br> Make sure you put in the 'using unique &lt;column name&gt;' and 'using SRID=#' clauses in. <br><br>For more help, please see http://postgis.refractions.net/documentation/ <br><br>Mappostgis.c - version of Jan 23/2004. </ServiceException> </ServiceExceptionReport>' In Mapserver 4.6.1 it works. /Regards Bengt
Change History
Note: See
TracTickets for help on using
tickets.
