From d2e05178ae54165481c47f2adc93c619c901bdae Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 30 Jul 2019 22:44:51 +0200 Subject: [PATCH] MSSQL2008: deal with termination '$' at end of regular expression. Follow-up of eea166a5157d4742b617cd7561c62cd2df5c8f5c (refs #5825) (#5841) Tested and confirm this fixes the issue --- mapmssql2008.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mapmssql2008.c b/mapmssql2008.c index 98571614cc..f94b17956f 100644 --- a/mapmssql2008.c +++ b/mapmssql2008.c @@ -2988,6 +2988,8 @@ int process_node(layerObj* layer, expressionObj *filter) i++; continue; } + if( c == '$' && c_next == 0 && strtmpl[0] == '^' ) + break; if (c == '\\') { i++;