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
a721dcab
Commit
a721dcab
authored
Nov 27, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: Item_func_opt_neg::negate()
remove redundant method
parent
fd004404
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+0
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-4
No files found.
sql/item_cmpfunc.h
View file @
a721dcab
...
...
@@ -839,7 +839,6 @@ class Item_func_opt_neg :public Item_bool_func
Item_func_opt_neg
(
THD
*
thd
,
List
<
Item
>
&
list
)
:
Item_bool_func
(
thd
,
list
),
negated
(
0
),
pred_level
(
0
)
{}
public:
inline
void
negate
()
{
negated
=
!
negated
;
}
inline
void
top_level_item
()
{
pred_level
=
1
;
}
bool
is_top_level_item
()
const
{
return
pred_level
;
}
Item
*
neg_transformer
(
THD
*
thd
)
...
...
sql/sql_yacc.yy
View file @
a721dcab
...
...
@@ -9016,8 +9016,7 @@ predicate:
Item_func_in *item= new (thd->mem_root) Item_func_in(thd, *$7);
if (item == NULL)
MYSQL_YYABORT;
item->negate();
$$= item;
$$= item->neg_transformer(thd);
}
| bit_expr BETWEEN_SYM bit_expr AND_SYM predicate
{
...
...
@@ -9031,8 +9030,7 @@ predicate:
item= new (thd->mem_root) Item_func_between(thd, $1, $4, $6);
if (item == NULL)
MYSQL_YYABORT;
item->negate();
$$= item;
$$= item->neg_transformer(thd);
}
| bit_expr SOUNDS_SYM LIKE bit_expr
{
...
...
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