Skip to content
Permalink
Browse files
RFC91/postgis explicitely cast string bindings to text (#4974)
  • Loading branch information
tbonfort committed Sep 18, 2014
1 parent 2d312c5 commit 648ec499bdc90ed05855a1cefa0d9641e70e46cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -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";
Submodule msautotest updated from edba3c to df6241

0 comments on commit 648ec49

Please sign in to comment.