Skip to content

Commit

Permalink
Merge pull request #5786 from ravhed/filter-id-dot
Browse files Browse the repository at this point in the history
Feature names with dots are now supported for feature id filtering
  • Loading branch information
rouault committed Apr 15, 2019
2 parents b4b680d + b8139f2 commit 8413c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapogcfilter.c
Expand Up @@ -3171,7 +3171,7 @@ int FLTCheckFeatureIdFilters(FilterEncodingNode *psFilterNode,
tokens = msStringSplit(psFilterNode->pszValue,',', &nTokens);
for (j=0; j<nTokens; j++) {
const char* pszId = tokens[j];
const char* pszDot = strchr(pszId, '.');
const char* pszDot = strrchr(pszId, '.');
if( pszDot )
{
if( pszDot - pszId != strlen(lp->name) ||
Expand Down
2 changes: 1 addition & 1 deletion mapogcfiltercommon.c
Expand Up @@ -645,7 +645,7 @@ char *FLTGetFeatureIdCommonExpression(FilterEncodingNode *psFilterNode, layerObj
char *pszTmp = NULL;
int bufferSize = 0;
const char* pszId = tokens[i];
const char* pszDot = strchr(pszId, '.');
const char* pszDot = strrchr(pszId, '.');
if( pszDot )
pszId = pszDot + 1;

Expand Down

0 comments on commit 8413c79

Please sign in to comment.