Skip to content

Commit

Permalink
Removed translation check for native SQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlime committed Oct 23, 2014
1 parent 1451ed4 commit b1c383b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mappostgis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b1c383b

Please sign in to comment.