Skip to content

Commit d2e0517

Browse files
rouaultgeographika
authored andcommitted
MSSQL2008: deal with termination '$' at end of regular expression. Follow-up of eea166a (refs #5825) (#5841)
Tested and confirm this fixes the issue
1 parent eb9c49c commit d2e0517

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mapmssql2008.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,6 +2988,8 @@ int process_node(layerObj* layer, expressionObj *filter)
29882988
i++;
29892989
continue;
29902990
}
2991+
if( c == '$' && c_next == 0 && strtmpl[0] == '^' )
2992+
break;
29912993

29922994
if (c == '\\') {
29932995
i++;

0 commit comments

Comments
 (0)