Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd391718

Browse files
committed
pwd
1 parent391c381 commitd391718

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/utils/adt/regexp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/regexp.c,v 1.51 2004/01/19 19:04:40 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/regexp.c,v 1.52 2004/02/03 17:52:55 tgl Exp $
1212
*
1313
*Alistair Crooks added the code for the regex caching
1414
*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,
119119
*/
120120
for (i=0;i<num_res;i++)
121121
{
122-
if (memcmp(re_array[i].cre_pat,text_re,text_re_len)==0&&
122+
if (VARSIZE(re_array[i].cre_pat)==text_re_len&&
123+
memcmp(re_array[i].cre_pat,text_re,text_re_len)==0&&
123124
re_array[i].cre_flags==cflags)
124125
{
125126
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp