From 1b4bb3b5bb2df01bd7ce1c8499d9cb79a62201c9 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 2 Apr 2019 09:13:16 +0400 Subject: MDEV-19124 Assertion `0' failed in Item::val_native --- sql/item_windowfunc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sql/item_windowfunc.cc') 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); -- cgit v1.2.1