Changeset: 1cc487615c2e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1cc487615c2e
Modified Files:
monetdb5/modules/mal/pcre.c
Branch: default
Log Message:
handle nil in pcre.match
diffs (14 lines):
diff --git a/monetdb5/modules/mal/pcre.c b/monetdb5/modules/mal/pcre.c
--- a/monetdb5/modules/mal/pcre.c
+++ b/monetdb5/modules/mal/pcre.c
@@ -716,6 +716,10 @@ pcre_match_with_flags(bit *ret, str val,
": unsupported flag character '%c'\n",
flags[i]);
}
}
+ if (strcmp(val, (char*)str_nil) == 0) {
+ *ret = FALSE;
+ return MAL_SUCCEED;
+ }
if ((re = pcre_compile(pat, options, &err_p, &errpos, NULL)) == NULL) {
throw(MAL, "pcre.match", OPERATION_FAILED
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list