Changeset: 5837374a56fd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5837374a56fd
Modified Files:
        monetdb5/modules/mal/pcre.c
Branch: Dec2016
Log Message:

Fix conversion of LIKE patterns to basic POSIX regular expressions.


diffs (18 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
@@ -823,8 +823,14 @@ pcre_match_with_flags(bit *ret, const ch
        return MAL_SUCCEED;
 }
 
+#ifdef HAVE_LIBPCRE
 /* special characters in PCRE that need to be escaped */
 static const char *pcre_specials = ".+?*()[]{}|^$\\";
+#else
+/* special characters in POSIX basic regular expressions that need to
+ * be escaped */
+static const char *pcre_specials = "*^$\\";
+#endif
 
 /* change SQL LIKE pattern into PCRE pattern */
 static str
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to