summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-06-09 14:23:45 +0200
committerSergei Golubchik <serg@mariadb.org>2017-07-05 17:15:57 +0200
commitc917ba1d5108ab90f861d4cd099feb515e54844d (patch)
treef3ca825d3c6248696852549d8a4aac21413049fb /sql/item.cc
parent5c30fcfa2fd52df16a7f3202fda9a377a4744c18 (diff)
downloadmariadb-git-c917ba1d5108ab90f861d4cd099feb515e54844d.tar.gz
fix the comparison in st_select_lex::setup_ref_array()
the array only needs to be reallocated if it's smaller than needed. Being larger is ok. also: remove a duplicated check (merge error)
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 30778132afc..df1f66fde28 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -494,8 +494,7 @@ Item::Item(THD *thd):
{
enum_parsing_place place=
thd->lex->current_select->parsing_place;
- if (place == SELECT_LIST ||
- place == IN_HAVING)
+ if (place == SELECT_LIST || place == IN_HAVING)
thd->lex->current_select->select_n_having_items++;
}
}