Mauricio Pazos ha scritto: > On Thursday 27 May 2010 10:58:48 am Mauricio Pazos wrote: >> On Thursday 27 May 2010 10:48:13 am Mauricio Pazos wrote: >>>> Possible ways out: >>>> - use an identifier that's very unlikely or downright wrong as an >>>> attribute name. Something like @id or ::id or id() (just making them >>>> up, did not check if I'm actually introducing other problems with >>>> any of them). >>>> - turn that into a pseudo function call, something like >>>> id_in(id1, id2, ..., idn) > A sentence like this works and it has not conflicts with other sentence. > I must to check the ECQL grammar details. > Following this idea the options could be > id_in(id1, id2, ..., idn) > or > id(id1, id2, ..., idn) > or > in(id1, id2, ..., idn) > more?
I'll let other people better than me at naming provide suggestions. id_in(id1, ...) is fine by me. The danger with using a function like syntax is to conflict with an existing filter function, in particular, "id" is already taken, see the filter capabilities section: http://demo.opengeo.org/geoserver/ows?service=wfs&version=1.0.0&request=GetCapabilities Alternatively we could use a syntax that does not look like a function call, something like id{id1, id2, ...} or id[id1, ..., idn] Pity that "ID" cannot be used, it would have been backwards compatible (I think). Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel