From 253aa7bbc4dda77427f6b1bf47620db36ada75b9 Mon Sep 17 00:00:00 2001 From: Varun Gupta Date: Tue, 7 Jul 2020 17:30:52 +0530 Subject: MDEV-12059: Assertion `precision > 0' failed with a window function or window aggregate function Pass the unsigned flag from the Item_sum to the window function --- sql/item_windowfunc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/item_windowfunc.h') diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index b9df1b7482b..85957949053 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -953,6 +953,7 @@ public: bool fix_length_and_dec() { decimals = window_func()->decimals; + unsigned_flag= window_func()->unsigned_flag; return FALSE; } -- cgit v1.2.1