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
657f8a8d
Commit
657f8a8d
authored
Jul 13, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8456 Dead code in Item_cond::fix_fields() and Item_func_between::fix_fields()
parent
f195f939
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
14 deletions
+1
-14
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+0
-12
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+0
-1
sql/sql_lex.h
sql/sql_lex.h
+1
-1
No files found.
sql/item_cmpfunc.cc
View file @
657f8a8d
...
...
@@ -2151,17 +2151,6 @@ longlong Item_func_interval::val_int()
1 got error
*/
bool
Item_func_between
::
fix_fields
(
THD
*
thd
,
Item
**
ref
)
{
if
(
Item_func_opt_neg
::
fix_fields
(
thd
,
ref
))
return
1
;
thd
->
lex
->
current_select
->
between_count
++
;
return
0
;
}
bool
Item_func_between
::
eval_not_null_tables
(
uchar
*
opt_arg
)
{
...
...
@@ -4344,7 +4333,6 @@ Item_cond::fix_fields(THD *thd, Item **ref)
if
(
item
->
maybe_null
)
maybe_null
=
1
;
}
thd
->
lex
->
current_select
->
cond_count
+=
list
.
elements
;
fix_length_and_dec
();
fixed
=
1
;
return
FALSE
;
...
...
sql/item_cmpfunc.h
View file @
657f8a8d
...
...
@@ -645,7 +645,6 @@ public:
longlong
val_int
();
enum
Functype
functype
()
const
{
return
BETWEEN
;
}
const
char
*
func_name
()
const
{
return
"between"
;
}
bool
fix_fields
(
THD
*
,
Item
**
);
void
fix_length_and_dec
();
virtual
void
print
(
String
*
str
,
enum_query_type
query_type
);
CHARSET_INFO
*
compare_collation
()
const
{
return
cmp_collation
.
collation
;
}
...
...
sql/sql_lex.h
View file @
657f8a8d
...
...
@@ -801,7 +801,7 @@ public:
list during split_sum_func
*/
uint
select_n_having_items
;
uint
cond_count
;
/* number of
arguments of and/or/xor in where/having/on
*/
uint
cond_count
;
/* number of
sargable Items in where/having/on
*/
uint
between_count
;
/* number of between predicates in where/having/on */
uint
max_equal_elems
;
/* maximal number of elements in multiple equalities */
/*
...
...
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