diff options
Diffstat (limited to 'contrib/pg_trgm/trgm_regexp.c')
| -rw-r--r-- | contrib/pg_trgm/trgm_regexp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/pg_trgm/trgm_regexp.c b/contrib/pg_trgm/trgm_regexp.c index bf1dea6352..64816dd370 100644 --- a/contrib/pg_trgm/trgm_regexp.c +++ b/contrib/pg_trgm/trgm_regexp.c @@ -541,9 +541,11 @@ createTrgmNFA(text *text_re, Oid collation, * Stage 1: Compile the regexp into a NFA, using the regexp library. */ #ifdef IGNORECASE - RE_compile(®ex, text_re, REG_ADVANCED | REG_ICASE, collation); + RE_compile(®ex, text_re, + REG_ADVANCED | REG_NOSUB | REG_ICASE, collation); #else - RE_compile(®ex, text_re, REG_ADVANCED, collation); + RE_compile(®ex, text_re, + REG_ADVANCED | REG_NOSUB, collation); #endif /* |
