Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fd5b1637
Commit
fd5b1637
authored
Nov 14, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wild_case_compate(&String, &String, escape) doesn't exist anymor
parent
5a8c6a33
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
31 deletions
+4
-31
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+4
-4
sql/sql_string.cc
sql/sql_string.cc
+0
-23
sql/sql_string.h
sql/sql_string.h
+0
-4
No files found.
sql/item_cmpfunc.cc
View file @
fd5b1637
...
@@ -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
;
}
}
...
...
sql/sql_string.cc
View file @
fd5b1637
...
@@ -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
));
}
sql/sql_string.h
View file @
fd5b1637
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment