summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorkent@mysql.com <>2005-09-29 03:20:31 +0200
committerkent@mysql.com <>2005-09-29 03:20:31 +0200
commit656b0cc15a6b6abc43c5e765c8b2dc96859a2ea7 (patch)
tree38ed48baf66a457188a181eeff05f39f32789b9b /sql/item_cmpfunc.cc
parent6e10a589e1b5ca9c8902f17b2701dccd00840bd5 (diff)
parent844d964f2d23e82697c0f3aed59dbf043f6e4128 (diff)
downloadmariadb-git-656b0cc15a6b6abc43c5e765c8b2dc96859a2ea7.tar.gz
Merge
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 48839abcb10..85ba8ff794d 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -3072,14 +3072,14 @@ Item_func_regex::fix_fields(THD *thd, Item **ref)
return FALSE;
}
int error;
- if ((error= regcomp(&preg,res->c_ptr(),
- ((cmp_collation.collation->state &
- (MY_CS_BINSORT | MY_CS_CSSORT)) ?
- REG_EXTENDED | REG_NOSUB :
- REG_EXTENDED | REG_NOSUB | REG_ICASE),
- cmp_collation.collation)))
+ if ((error= my_regcomp(&preg,res->c_ptr(),
+ ((cmp_collation.collation->state &
+ (MY_CS_BINSORT | MY_CS_CSSORT)) ?
+ REG_EXTENDED | REG_NOSUB :
+ REG_EXTENDED | REG_NOSUB | REG_ICASE),
+ cmp_collation.collation)))
{
- (void) regerror(error,&preg,buff,sizeof(buff));
+ (void) my_regerror(error,&preg,buff,sizeof(buff));
my_error(ER_REGEXP_ERROR, MYF(0), buff);
return TRUE;
}
@@ -3121,15 +3121,15 @@ longlong Item_func_regex::val_int()
prev_regexp.copy(*res2);
if (regex_compiled)
{
- regfree(&preg);
+ my_regfree(&preg);
regex_compiled=0;
}
- if (regcomp(&preg,res2->c_ptr_safe(),
- ((cmp_collation.collation->state &
- (MY_CS_BINSORT | MY_CS_CSSORT)) ?
- REG_EXTENDED | REG_NOSUB :
- REG_EXTENDED | REG_NOSUB | REG_ICASE),
- cmp_collation.collation))
+ if (my_regcomp(&preg,res2->c_ptr_safe(),
+ ((cmp_collation.collation->state &
+ (MY_CS_BINSORT | MY_CS_CSSORT)) ?
+ REG_EXTENDED | REG_NOSUB :
+ REG_EXTENDED | REG_NOSUB | REG_ICASE),
+ cmp_collation.collation))
{
null_value=1;
return 0;
@@ -3138,7 +3138,7 @@ longlong Item_func_regex::val_int()
}
}
null_value=0;
- return regexec(&preg,res->c_ptr(),0,(regmatch_t*) 0,0) ? 0 : 1;
+ return my_regexec(&preg,res->c_ptr(),0,(my_regmatch_t*) 0,0) ? 0 : 1;
}
@@ -3148,7 +3148,7 @@ void Item_func_regex::cleanup()
Item_bool_func::cleanup();
if (regex_compiled)
{
- regfree(&preg);
+ my_regfree(&preg);
regex_compiled=0;
}
DBUG_VOID_RETURN;