Permalink
Browse files

Fix #5265

In PostGIS filter, a MS_TOKEN_COMPARISON_EQ followed by a
MS_TOKEN_LITERAL_TIME is ignored, because the operator if set with the
MS_TOKEN_LITERAL_TIME.
  • Loading branch information...
edigiacomo committed Mar 25, 2016
1 parent cb0cb44 commit 7295312c97eed750dd776b4bb0a1a5a86cae4d88
Showing with 1 addition and 0 deletions.
  1. +1 −0 mappostgis.c
View
@@ -3785,6 +3785,7 @@ int msPostGISLayerTranslateFilter(layerObj *layer, expressionObj *filter, char *
default:
/* by default accept the general token to string conversion */
+ if(node->token == MS_TOKEN_COMPARISON_EQ && node->next != NULL && node->next->token == MS_TOKEN_LITERAL_TIME) break; /* skip, handled with the next token */
if(bindingToken == MS_TOKEN_BINDING_TIME && (node->token == MS_TOKEN_COMPARISON_EQ || node->token == MS_TOKEN_COMPARISON_NE)) break; /* skip, handled elsewhere */
native_string = msStringConcatenate(native_string, msExpressionTokenToString(node->token));

0 comments on commit 7295312

Please sign in to comment.