summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-09 09:00:17 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-09 09:00:17 +0400
commit2dac1235150681433bdf6480e479e2f787b40f8b (patch)
treee40be99b51aaadb74917e7b02b80ab0525d54613 /sql/item_windowfunc.h
parentc3d67c17c150b06f79f2d4935933ebb6ecc4f644 (diff)
downloadmariadb-git-2dac1235150681433bdf6480e479e2f787b40f8b.tar.gz
A cleanup for `MDEV-20273 Add class Item_sum_min_max` - removing duplicate code
Reusing the MIN()/MAX() fix_length_and_dec() related code for window functions - FIRST_VALUE() - LAST_VALUE() - NTH_VALUE() - LEAD() - LAG
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r--sql/item_windowfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index 1432643dfc8..e6389c01832 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -307,6 +307,7 @@ class Item_sum_hybrid_simple : public Item_sum_hybrid
bool add();
bool fix_fields(THD *, Item **);
+ bool fix_length_and_dec();
void setup_hybrid(THD *thd, Item *item);
double val_real();
longlong val_int();