Skip to content

Commit

Permalink
RFC91/postgis explicitely cast string bindings to text (#4974)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Sep 18, 2014
1 parent 2d312c5 commit 648ec49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mappostgis.c
Original file line number Diff line number Diff line change
Expand Up @@ -3807,7 +3807,7 @@ int msPostGISLayerTranslateFilter(layerObj *layer, expressionObj *filter, char *
case MS_TOKEN_BINDING_DOUBLE:
case MS_TOKEN_BINDING_INTEGER:
case MS_TOKEN_BINDING_STRING:
if(node->next->token == MS_TOKEN_COMPARISON_RE || node->next->token == MS_TOKEN_COMPARISON_IRE)
if(node->token == MS_TOKEN_BINDING_STRING || node->next->token == MS_TOKEN_COMPARISON_RE || node->next->token == MS_TOKEN_COMPARISON_IRE)
strtmpl = "%s::text"; /* explicit cast necessary for certain operators */
else
strtmpl = "%s";
Expand Down
2 changes: 1 addition & 1 deletion msautotest
Submodule msautotest updated from edba3c to df6241

0 comments on commit 648ec49

Please sign in to comment.