diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-08-02 18:58:01 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-08-02 18:58:01 +0400 |
commit | 863d5b4f75b488412c237af8bed9632aabce690b (patch) | |
tree | 9660a6ffab193834d99599261e0fd44c22cbcd0c /mysql-test/main/partition.test | |
parent | da78e952fb327161311a590eb902c5c55da0f2fc (diff) | |
download | mariadb-git-863d5b4f75b488412c237af8bed9632aabce690b.tar.gz |
MDEV-23350 ROUND(bigint_22_or_longer) returns a wrong data type
The condition in Item_func_round::fix_arg_int() to decide whether:
- we can preserve the data type of args[0] versus
- the result can go outside of the args[0] data type
was wrong.
The data type of the first argument can be preserved in these cases:
- TRUNCATE(x, n)
- ROUND(x, n>=0)
Fixing the condition accordingly.
Diffstat (limited to 'mysql-test/main/partition.test')
0 files changed, 0 insertions, 0 deletions