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
4d4f2ed2
Commit
4d4f2ed2
authored
Jun 28, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving Item_bool_func::add_key_fields_optimize_op() to Item_bool_func2.
It's now needed outside of Item_bool_func2 any more.
parent
e04f6e7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+4
-4
sql/sql_select.cc
sql/sql_select.cc
+5
-5
No files found.
sql/item_cmpfunc.h
View file @
4d4f2ed2
...
...
@@ -122,10 +122,6 @@ public:
class
Item_bool_func
:
public
Item_int_func
{
protected:
void
add_key_fields_optimize_op
(
JOIN
*
join
,
KEY_FIELD
**
key_fields
,
uint
*
and_level
,
table_map
usable_tables
,
SARGABLE_PARAM
**
sargables
,
bool
equal_func
);
public:
Item_bool_func
()
:
Item_int_func
()
{}
Item_bool_func
(
Item
*
a
)
:
Item_int_func
(
a
)
{}
...
...
@@ -291,6 +287,10 @@ public:
class
Item_bool_func2
:
public
Item_bool_func
{
/* Bool with 2 string args */
bool
have_rev_func
()
const
{
return
rev_functype
()
!=
UNKNOWN_FUNC
;
}
protected:
void
add_key_fields_optimize_op
(
JOIN
*
join
,
KEY_FIELD
**
key_fields
,
uint
*
and_level
,
table_map
usable_tables
,
SARGABLE_PARAM
**
sargables
,
bool
equal_func
);
public:
Item_bool_func2
(
Item
*
a
,
Item
*
b
)
:
Item_bool_func
(
a
,
b
)
{
}
...
...
sql/sql_select.cc
View file @
4d4f2ed2
...
...
@@ -4773,11 +4773,11 @@ Item_func_like::add_key_fields(JOIN *join, KEY_FIELD **key_fields,
void
Item_bool_func
::
add_key_fields_optimize_op
(
JOIN
*
join
,
KEY_FIELD
**
key_fields
,
uint
*
and_level
,
table_map
usable_tables
,
SARGABLE_PARAM
**
sargables
,
bool
equal_func
)
Item_bool_func
2
::
add_key_fields_optimize_op
(
JOIN
*
join
,
KEY_FIELD
**
key_fields
,
uint
*
and_level
,
table_map
usable_tables
,
SARGABLE_PARAM
**
sargables
,
bool
equal_func
)
{
/* If item is of type 'field op field/constant' add it to key_fields */
if
(
is_local_field
(
args
[
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