diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-01-26 03:02:45 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-03-30 17:00:17 +0530 |
commit | 3eb1e11d8a68b5667193d14d718b5e672fe18fb7 (patch) | |
tree | 741082e6b477928875c9147296528cee9f30ab13 /sql/item_windowfunc.cc | |
parent | 12abe61af44205a17c75ace71252db1bad05b184 (diff) | |
download | mariadb-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/item_windowfunc.cc')
-rw-r--r-- | sql/item_windowfunc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_windowfunc.cc b/sql/item_windowfunc.cc index 4fef4fa10b2..5438cade27a 100644 --- a/sql/item_windowfunc.cc +++ b/sql/item_windowfunc.cc @@ -126,7 +126,7 @@ Item_window_func::fix_fields(THD *thd, Item **ref) with_flags= (with_flags & ~item_with_t::SUM_FUNC) | item_with_t::WINDOW_FUNC; - if (fix_length_and_dec()) + if (fix_length_and_dec(thd)) return TRUE; max_length= window_func()->max_length; @@ -352,7 +352,7 @@ bool Item_sum_hybrid_simple::fix_fields(THD *thd, Item **ref) with_flags|= args[i]->with_flags; } - if (fix_length_and_dec()) + if (fix_length_and_dec(thd)) return TRUE; setup_hybrid(thd, args[0]); @@ -368,7 +368,7 @@ bool Item_sum_hybrid_simple::fix_fields(THD *thd, Item **ref) } -bool Item_sum_hybrid_simple::fix_length_and_dec() +bool Item_sum_hybrid_simple::fix_length_and_dec(THD *thd) { set_maybe_null(); null_value= true; |