Permalink
Browse files

WFS: fix LIKE with backslash as escape character, with Postgis backend

  • Loading branch information...
rouault committed Nov 22, 2013
1 parent 11f7cb9 commit 969634889d075c7313fbaf3574128410b0bd7b11
Showing with 5 additions and 2 deletions.
  1. +4 −1 mapogcfilter.c
  2. +1 −1 msautotest
View
@@ -3081,7 +3081,10 @@ char *FLTGetIsLikeComparisonSQLExpression(FilterEncodingNode *psFilterNode,
strlcat(szBuffer, "'", bufferSize);
if (lp->connectiontype != MS_OGR) {
strlcat(szBuffer, " escape '", bufferSize);
if (lp->connectiontype == MS_POSTGIS && pszEscape[0] == '\\')
strlcat(szBuffer, " escape E'", bufferSize);
else
strlcat(szBuffer, " escape '", bufferSize);
szTmp[0] = pszEscape[0];
if (pszEscape[0] == '\\') {
szTmp[1] = '\\';
Submodule msautotest updated from f45268 to a63d39

0 comments on commit 9696348

Please sign in to comment.