Issue Type: Bug Bug
Assignee: Gabriel Roldán
Components: wfs plugin
Created: 15/Nov/12 9:37 AM
Description:

If I create a filter like this:

Filter like = ff.like(ff.property("STATE_NAME"), "*ew*");
Filter and = ff.and(Arrays.asList(Filter.INCLUDE, like, Filter.INCLUDE));

It will create an invalid query (an AND with only one parameter):

<ogc:Filter>
   <ogc:And>
    <ogc:PropertyIsLike escapeChar="\" singleChar="?" wildCard="*">
     <ogc:PropertyName>STATE_NAME</ogc:PropertyName>
     <ogc:Literal>*ew*</ogc:Literal>
    </ogc:PropertyIsLike>
   </ogc:And>
  </ogc:Filter>
Project: GeoTools
Priority: Major Major
Reporter: Davide Savazzi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to