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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
660f52ab
Commit
660f52ab
authored
Nov 14, 2002
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wild_case_compate(&String, &String, escape) doesn't exist anymor
parent
76ed2fc4
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 @
660f52ab
...
...
@@ -1313,10 +1313,10 @@ longlong Item_func_like::val_int()
set_charset
(
my_charset_bin
);
if
(
canDoTurboBM
)
return
turboBM_matches
(
res
->
ptr
(),
res
->
length
())
?
1
:
0
;
if
(
binary
())
return
wild_compare
(
*
res
,
*
res2
,
escape
)
?
0
:
1
;
else
return
wild_case_compare
(
*
res
,
*
res2
,
escape
)
?
0
:
1
;
return
my_wildcmp
(
charset
(),
res
->
ptr
(),
res
->
ptr
()
+
res
->
length
(),
res2
->
ptr
(),
res2
->
ptr
()
+
res2
->
length
(),
escape
,
wild_one
,
wild_many
)
?
0
:
1
;
}
...
...
sql/sql_string.cc
View file @
660f52ab
...
...
@@ -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 @
660f52ab
...
...
@@ -28,8 +28,6 @@ class String;
int
sortcmp
(
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
);
int
wild_case_compare
(
String
&
match
,
String
&
wild
,
char
escape
);
int
wild_compare
(
String
&
match
,
String
&
wild
,
char
escape
);
class
String
{
...
...
@@ -208,8 +206,6 @@ class String
friend
int
sortcmp
(
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
int
wild_case_compare
(
String
&
match
,
String
&
wild
,
char
escape
);
friend
int
wild_compare
(
String
&
match
,
String
&
wild
,
char
escape
);
uint32
numchars
();
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