diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2020-07-07 17:30:52 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2020-07-07 17:30:53 +0530 |
commit | 253aa7bbc4dda77427f6b1bf47620db36ada75b9 (patch) | |
tree | 73827327d483d4b90a2ea7818022dacfcd705115 /sql/item_windowfunc.h | |
parent | dba7e1e8e14254c9de61e74b7e68cdbbad0038a8 (diff) | |
download | mariadb-git-253aa7bbc4dda77427f6b1bf47620db36ada75b9.tar.gz |
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
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |