Re: [gdal-dev] Change in parsing of OGR where clause

2016-04-06 Thread Andrew Bell
On Wed, Apr 6, 2016 at 3:57 PM, Even Rouault wrote: > > Is there a context where a double-quoted string would be acceptable here? > > If so, then fine (maybe). But if not, it seems that something like > > "unexpected character '"' found in where clause" would make more sense > than > > the curre

Re: [gdal-dev] Change in parsing of OGR where clause

2016-04-06 Thread Even Rouault
Le mercredi 06 avril 2016 22:48:38, Andrew Bell a écrit : > On Wed, Apr 6, 2016 at 3:39 PM, Even Rouault > > wrote: > > Andrew, > > > > > In version 1.X of GDAL, the following was accepted and worked: > > > > > > std::string query = "LOCATION=\"some text\""; > > > OGR_L_SetAttributeFilter(layer

Re: [gdal-dev] Change in parsing of OGR where clause

2016-04-06 Thread Andrew Bell
On Wed, Apr 6, 2016 at 3:39 PM, Even Rouault wrote: > Andrew, > > > In version 1.X of GDAL, the following was accepted and worked: > > > > std::string query = "LOCATION=\"some text\""; > > OGR_L_SetAttributeFilter(layer, query.c_str()); > > > > In version 2.X, this is no longer accepted and the d

Re: [gdal-dev] Change in parsing of OGR where clause

2016-04-06 Thread Even Rouault
Andrew, > In version 1.X of GDAL, the following was accepted and worked: > > std::string query = "LOCATION=\"some text\""; > OGR_L_SetAttributeFilter(layer, query.c_str()); > > In version 2.X, this is no longer accepted and the double quotes must be > replaced by single quotes: > > std::string

[gdal-dev] Change in parsing of OGR where clause

2016-04-06 Thread Andrew Bell
In version 1.X of GDAL, the following was accepted and worked: std::string query = "LOCATION=\"some text\""; OGR_L_SetAttributeFilter(layer, query.c_str()); In version 2.X, this is no longer accepted and the double quotes must be replaced by single quotes: std::string query = "LOCATION='some tex