diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-04-02 09:13:16 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-04-02 09:13:16 +0400 |
commit | 1b4bb3b5bb2df01bd7ce1c8499d9cb79a62201c9 (patch) | |
tree | a38c6ea3a8d2c735739cdcc774ba03b32616ecca /sql/item_windowfunc.cc | |
parent | 884004502134d881af0bcb59f97a838784ab5bbe (diff) | |
download | mariadb-git-1b4bb3b5bb2df01bd7ce1c8499d9cb79a62201c9.tar.gz |
MDEV-19124 Assertion `0' failed in Item::val_native
Diffstat (limited to 'sql/item_windowfunc.cc')
-rw-r--r-- | sql/item_windowfunc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/item_windowfunc.cc b/sql/item_windowfunc.cc index aa2c7756ab7..adff1c3612b 100644 --- a/sql/item_windowfunc.cc +++ b/sql/item_windowfunc.cc @@ -439,6 +439,14 @@ Item_sum_hybrid_simple::val_str(String *str) return retval; } +bool Item_sum_hybrid_simple::val_native(THD *thd, Native *to) +{ + DBUG_ASSERT(fixed == 1); + if (null_value) + return true; + return val_native_from_item(thd, value, to); +} + bool Item_sum_hybrid_simple::get_date(THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate) { DBUG_ASSERT(fixed == 1); |