summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-07-05 17:49:44 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2018-11-07 09:43:12 +0100
commit54b2e1c1bea357ca37ce537e24c6c120a43f5958 (patch)
tree07b598917c2cc55a34b1d368dd51fefab990058a /sql/item_subselect.cc
parent89a87e8e422bc342ed31764fa858898dabbf0be4 (diff)
downloadmariadb-git-54b2e1c1bea357ca37ce537e24c6c120a43f5958.tar.gz
MDEV-16697: Fix difference between 32bit/windows and 64bit systems in allowed select nest level
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 1947a45186a..207aa9a25c9 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -1983,8 +1983,7 @@ bool Item_allany_subselect::transform_into_max_min(JOIN *join)
print_where(item, "rewrite with MIN/MAX", QT_ORDINARY););
save_allow_sum_func= thd->lex->allow_sum_func;
- thd->lex->allow_sum_func|=
- (nesting_map)1 << thd->lex->current_select->nest_level;
+ thd->lex->allow_sum_func.set_bit(thd->lex->current_select->nest_level);
/*
Item_sum_(max|min) can't substitute other item => we can use 0 as
reference, also Item_sum_(max|min) can't be fixed after creation, so