Permalink
Browse files

Fix MSSql Filter

  • Loading branch information...
eric-peiffer committed Feb 22, 2018
1 parent 03da61e commit c0f2f8ae10a661eeeb480bf2d8738b4fa383a93d
Showing with 5 additions and 0 deletions.
  1. +5 −0 mapmssql2008.c
@@ -2387,6 +2387,11 @@ int process_node(layerObj* layer, expressionObj *filter)
break;
/* literal tokens */
case MS_TOKEN_LITERAL_BOOLEAN:
if(layerinfo->current_node->tokenval.dblval == MS_TRUE)
filter->native_string = msStringConcatenate(filter->native_string, "1");
else
filter->native_string = msStringConcatenate(filter->native_string, "0");
break;
case MS_TOKEN_LITERAL_NUMBER:
strtmpl = "%lf";
snippet = (char *) msSmallMalloc(strlen(strtmpl) + 16);

0 comments on commit c0f2f8a

Please sign in to comment.