Skip to content
Permalink
Browse files

Removed translation check for native SQL.

  • Loading branch information
sdlime committed Oct 23, 2014
1 parent 1451ed4 commit b1c383b189baf010f182c8daf5423a4a1e5712a4
Showing with 4 additions and 4 deletions.
  1. +4 −4 mappostgis.c
@@ -3599,10 +3599,10 @@ int msPostGISLayerTranslateFilter(layerObj *layer, expressionObj *filter, char *

// fprintf(stderr, "input: %s, %s, %d\n", filter->string, filteritem, filter->type);

if(filter->type == MS_STRING && filter->string && !filteritem) { /* native sql */
filter->native_string = msStrdup(filter->string);
return MS_SUCCESS;
} else if(filter->type == MS_STRING && filter->string && filteritem) { /* item/value pair - add escaping */
/*
** FILTERs use MapServer syntax *only* (#5001).
*/
if(filter->type == MS_STRING && filter->string && filteritem) { /* item/value pair - add escaping */

stresc = msLayerEscapePropertyName(layer, filteritem);
if(filter->flags & MS_EXP_INSENSITIVE) {

0 comments on commit b1c383b

Please sign in to comment.
You can’t perform that action at this time.