pgpool2/pool_rewrite_query.c in prestogres-0.4.6 vs pgpool2/pool_rewrite_query.c in prestogres-0.4.7
- old
+ new
@@ -756,10 +756,10 @@
return false;
}
if (context->pattern == NULL) {
pcre* pattern;
- pattern = pcre_compile(regexp, PCRE_CASELESS | PCRE_UTF8,
+ pattern = pcre_compile(regexp, PCRE_CASELESS | PCRE_UTF8 | PCRE_DOTALL,
&context->errptr, &context->erroffset, NULL);
if (pattern == NULL) {
pool_error("regexp_match: invalid regexp %s at %d", context->errptr, context->erroffset);
return false;
}