Mercurial > hg > MonetDB-extend
changeset 32:25cd8af6fa82
TEMPORARILY relax error condition
bad utf8 means nomatch
author | Aris Koning <aris.koning@monetdbsolutions.com> |
---|---|
date | Tue, 18 Jun 2019 19:00:56 +0200 (2019-06-18) |
parents | 3510e17287e6 |
children | a8ffdbc388ce |
files | regexp/regexp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/regexp/regexp.c Mon Jun 17 17:30:38 2019 +0200 +++ b/regexp/regexp.c Tue Jun 18 19:00:56 2019 +0200 @@ -216,7 +216,7 @@ bn->tnonil = false; } else { pos = pcre_exec(re, sd, val, (int) strlen(val), 0, 0, NULL, 0); - if (pos < 0 && pos != PCRE_ERROR_NOMATCH) { + if (pos < 0 && pos != PCRE_ERROR_NOMATCH && pos != PCRE_ERROR_BADUTF8) { /* error during processing */ BBPunfix(b->batCacheid); BBPreclaim(bn);