Commit fd5b1637 authored by unknown's avatar unknown

wild_case_compate(&String, &String, escape) doesn't exist anymor

parent 5a8c6a33
...@@ -1313,10 +1313,10 @@ longlong Item_func_like::val_int() ...@@ -1313,10 +1313,10 @@ longlong Item_func_like::val_int()
set_charset(my_charset_bin); set_charset(my_charset_bin);
if (canDoTurboBM) if (canDoTurboBM)
return turboBM_matches(res->ptr(), res->length()) ? 1 : 0; return turboBM_matches(res->ptr(), res->length()) ? 1 : 0;
if (binary()) return my_wildcmp(charset(),
return wild_compare(*res,*res2,escape) ? 0 : 1; res->ptr(),res->ptr()+res->length(),
else res2->ptr(),res2->ptr()+res2->length(),
return wild_case_compare(*res,*res2,escape) ? 0 : 1; escape,wild_one,wild_many) ? 0 : 1;
} }
......
...@@ -673,26 +673,3 @@ String *copy_if_not_alloced(String *to,String *from,uint32 from_length) ...@@ -673,26 +673,3 @@ String *copy_if_not_alloced(String *to,String *from,uint32 from_length)
int wild_case_compare(String &match,String &wild, char escape)
{
DBUG_ENTER("wild_case_compare");
DBUG_PRINT("enter",("match='%s', wild='%s', escape='%c'"
,match.ptr(),wild.ptr(),escape));
DBUG_RETURN(my_wildcmp(match.str_charset,match.ptr(),match.ptr()+match.length(),
wild.ptr(), wild.ptr()+wild.length(),
escape,wild_one,wild_many));
}
int wild_compare(String &match,String &wild, char escape)
{
DBUG_ENTER("wild_compare");
DBUG_PRINT("enter",("match='%s', wild='%s', escape='%c'"
,match.ptr(),wild.ptr(),escape));
DBUG_RETURN(my_wildcmp(my_charset_bin,match.ptr(),match.ptr()+match.length(),
wild.ptr(), wild.ptr()+wild.length(),
escape,wild_one,wild_many));
}
...@@ -28,8 +28,6 @@ class String; ...@@ -28,8 +28,6 @@ class String;
int sortcmp(const String *a,const String *b); int sortcmp(const String *a,const String *b);
int stringcmp(const String *a,const String *b); int stringcmp(const String *a,const String *b);
String *copy_if_not_alloced(String *a,String *b,uint32 arg_length); String *copy_if_not_alloced(String *a,String *b,uint32 arg_length);
int wild_case_compare(String &match,String &wild,char escape);
int wild_compare(String &match,String &wild,char escape);
class String class String
{ {
...@@ -208,8 +206,6 @@ public: ...@@ -208,8 +206,6 @@ public:
friend int sortcmp(const String *a,const String *b); friend int sortcmp(const String *a,const String *b);
friend int stringcmp(const String *a,const String *b); friend int stringcmp(const String *a,const String *b);
friend String *copy_if_not_alloced(String *a,String *b,uint32 arg_length); friend String *copy_if_not_alloced(String *a,String *b,uint32 arg_length);
friend int wild_case_compare(String &match,String &wild,char escape);
friend int wild_compare(String &match,String &wild,char escape);
uint32 numchars(); uint32 numchars();
int charpos(int i,uint32 offset=0); int charpos(int i,uint32 offset=0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment