Skip to content
Snippets Groups Projects
Commit d3917186 authored by Tom Lane's avatar Tom Lane
Browse files

pwd

parent 391c3811
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/regexp.c,v 1.51 2004/01/19 19:04:40 tgl Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/regexp.c,v 1.52 2004/02/03 17:52:55 tgl Exp $
* *
* Alistair Crooks added the code for the regex caching * Alistair Crooks added the code for the regex caching
* agc - cached the regular expressions used - there's a good chance * agc - cached the regular expressions used - there's a good chance
...@@ -119,7 +119,8 @@ RE_compile_and_execute(text *text_re, unsigned char *dat, int dat_len, ...@@ -119,7 +119,8 @@ RE_compile_and_execute(text *text_re, unsigned char *dat, int dat_len,
*/ */
for (i = 0; i < num_res; i++) for (i = 0; i < num_res; i++)
{ {
if (memcmp(re_array[i].cre_pat, text_re, text_re_len) == 0 && if (VARSIZE(re_array[i].cre_pat) == text_re_len &&
memcmp(re_array[i].cre_pat, text_re, text_re_len) == 0 &&
re_array[i].cre_flags == cflags) re_array[i].cre_flags == cflags)
{ {
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment