SQLEncoder cant handle some conversions
---------------------------------------

                 Key: GEOT-1088
                 URL: http://jira.codehaus.org/browse/GEOT-1088
             Project: GeoTools
          Issue Type: Bug
          Components: data jdbc, data postgis
            Reporter: Justin Deoliveira
         Attachments: SQLEncoder.java.diff, SQLEncoderPostgis.java.diff

SQLEncoder as written will choke on filters such as:

<Filter>
  <PropertyName>booleanProperty</PropertyName>
  <Literal>1</Literal>
</Filter>
The fix is to have the sql encoder evaluate literals in the context of a type, 
which is available from the PropertyName while encoding a filter.

The new geoapi Filter interface offers a nice way to acheive this as visitor 
methods can return "data" or hints as a filter is traversed. However the jdbc / 
postgis datastore is very tied to the old SQLEncoder interface ,so changing 
over would require all jdbc based datastores to shift, which is a problem. So 
for now, i am stuck with hacking the current.

Patch attatched for review.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to