There was a known issue with case-sensitiveness.
It should have been fixed, but maybe it's popping up again.
See

GEOT-378

Bye

Paolo Rizzi

 
-----Messaggio originale-----
Da: Alessio Fabiani [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 19 ottobre 2005 13.58
A: geotools-devel; geoserver-devel
Oggetto: [Geotools-devel] PostGIS features issue

Hi guys,
 
I have a postgis datastore in GeoServer 1.3.0-RC4.SP1.
 
Trying to send the following request:
 

<?xml version="1.0" encoding="iso-8859-1"?>

<GetFeature outputFormat="GML2" xmlns:gml="http://www.opengis.net/gml">
   <Query typeName="NURC:Main">
      <PropertyName>/Main/Source</PropertyName>
      <PropertyName>/Main/Year</PropertyName>
      <Filter>
         <And>
            <FeatureId fid="234"/>
            <BBOX>
               <PropertyName>/Main/the_geom</PropertyName>
               <gml:Box>
                  <gml:coord>
                     <gml:X>1</gml:X>
                     <gml:Y>40</gml:Y>
                  </gml:coord>
                  <gml:coord>
                     <gml:X>12</gml:X>
                     <gml:Y>56</gml:Y>
                  </gml:coord>
               </gml:Box>
            </BBOX>
            <PropertyIsEqualTo>
               <PropertyName>/Main/Year</PropertyName>
               <Literal>1988</Literal>
            </PropertyIsEqualTo>
         </And>
      </Filter>
   </Query>
</GetFeature>

 

GeoServer produces the following Exception:

org.geotools.data.DataSourceException: Error Performing SQL query: SELECT "ID", "Source", "Year" FROM "Main" WHERE ((ID = '234') AND "the_geom" && GeometryFromText('POLYGON ((1 40, 1 56, 12 56, 12 40, 1 40))', -1) AND "Year" = 1988)
....
....
....
Caused by: org.postgresql.util.PSQLException: ERROR: column "id" does not exist

Infact the SQL string is wrong, it should be:

... FROM "Main" WHERE (("ID" = '234') AND ...

instead of

... FROM "Main" WHERE ((ID = '234') AND ...

 

Does anyone knows the cuse?

 

Thanks,

                                   Alessio.





AVVERTENZE AI SENSI DEL D. LGS. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i, sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema; costituisce comportamento contrario ai principi dettati dal D. Lgs. 196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse.

Reply via email to