Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WFS: fix LIKE with backslash as escape character, with Postgis backend
  • Loading branch information
rouault committed Nov 22, 2013
1 parent 11f7cb9 commit 9696348
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mapogcfilter.c
Expand Up @@ -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] = '\\';
Expand Down
2 changes: 1 addition & 1 deletion msautotest
Submodule msautotest updated from f45268 to a63d39

0 comments on commit 9696348

Please sign in to comment.