summaryrefslogtreecommitdiff
path: root/mysql-test/main/func_math.test
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-01-10 16:08:26 +0400
committerAlexander Barkov <bar@mariadb.com>2019-01-10 16:08:26 +0400
commit82490a97dbbe1dfdf88ed6b9fee8974cf58c63e3 (patch)
tree31229cf9003c2266de0652bfe3813817c72f430f /mysql-test/main/func_math.test
parent2ffa11e33e018fad58c1df4cb1bdb0642ef0f8fd (diff)
downloadmariadb-git-82490a97dbbe1dfdf88ed6b9fee8974cf58c63e3.tar.gz
MDEV-18150 Assertion `decimals_to_set <= 38' failed in Item_func_round::fix_length_and_dec_decimal
Diffstat (limited to 'mysql-test/main/func_math.test')
-rw-r--r--mysql-test/main/func_math.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/main/func_math.test b/mysql-test/main/func_math.test
index bf95cfd7868..5d7c593a63d 100644
--- a/mysql-test/main/func_math.test
+++ b/mysql-test/main/func_math.test
@@ -920,5 +920,13 @@ SET sql_mode=DEFAULT;
--echo #
+--echo # MDEV-18150 Assertion `decimals_to_set <= 38' failed in Item_func_round::fix_length_and_dec_decimal
+--echo #
+
+CREATE TABLE t1 (i INT(23));
+SELECT ROUND( i, 18446744073709551594 ) AS f FROM t1;
+DROP TABLE t1;
+
+--echo #
--echo # End of 10.3 tests
--echo #