summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorRucha Deodhar <rucha.deodhar@mariadb.com>2022-01-26 03:02:45 +0530
committerRucha Deodhar <rucha.deodhar@mariadb.com>2022-03-30 17:00:17 +0530
commit3eb1e11d8a68b5667193d14d718b5e672fe18fb7 (patch)
tree741082e6b477928875c9147296528cee9f30ab13 /sql/sql_select.cc
parent12abe61af44205a17c75ace71252db1bad05b184 (diff)
downloadmariadb-git-3eb1e11d8a68b5667193d14d718b5e672fe18fb7.tar.gz
MDEV-23479: Add a THD* argument to Item_func_or_sum::fix_length_and_dec()
Fix: Added THD *thd argument in Item_func_or_sum::fix_length_and_dec() and in fix_length_and_dec() for all derived classes of Item_func_or_sum.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index c044656e916..ff27c4d64c4 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -15667,7 +15667,7 @@ COND *Item_func_eq::build_equal_items(THD *thd,
List_iterator_fast<Item_equal> it(cond_equal.current_level);
while ((item_equal= it++))
{
- if (item_equal->fix_length_and_dec())
+ if (item_equal->fix_length_and_dec(thd))
return NULL;
item_equal->update_used_tables();
set_if_bigger(thd->lex->current_select->max_equal_elems,