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
cb5f32eb
Commit
cb5f32eb
authored
Jun 26, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving Item_func_xor out of Item_bool_func2, as it does not need
any of the optimizer related functionality.
parent
40e5acea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+9
-3
No files found.
sql/item_cmpfunc.h
View file @
cb5f32eb
...
...
@@ -284,6 +284,10 @@ public:
void
reset_cache
()
{
cache
=
NULL
;
}
};
/*
Functions and operators with two arguments that can use range optimizer.
*/
class
Item_bool_func2
:
public
Item_bool_func
{
/* Bool with 2 string args */
public:
...
...
@@ -351,16 +355,18 @@ public:
};
/**
XOR inherits from Item_bool_func
2
because it is not optimized yet.
XOR inherits from Item_bool_func because it is not optimized yet.
Later, when XOR is optimized, it needs to inherit from
Item_cond instead. See WL#5800.
*/
class
Item_func_xor
:
public
Item_bool_func
2
class
Item_func_xor
:
public
Item_bool_func
{
public:
Item_func_xor
(
Item
*
i1
,
Item
*
i2
)
:
Item_bool_func
2
(
i1
,
i2
)
{}
Item_func_xor
(
Item
*
i1
,
Item
*
i2
)
:
Item_bool_func
(
i1
,
i2
)
{}
enum
Functype
functype
()
const
{
return
XOR_FUNC
;
}
const
char
*
func_name
()
const
{
return
"xor"
;
}
void
print
(
String
*
str
,
enum_query_type
query_type
)
{
Item_func
::
print_op
(
str
,
query_type
);
}
longlong
val_int
();
Item
*
neg_transformer
(
THD
*
thd
);
bool
subst_argument_checker
(
uchar
**
arg
)
...
...
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