summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-08-19 09:06:50 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2011-08-19 09:06:50 +0200
commitaf6f0876ade33ad67e4a3f458a88ec21649656e2 (patch)
tree73cea93f02979761076fafb51153522053e8bf3a /mysql-test/r
parent0b78d5641248dc8c92a36713bfa9f4958b66648a (diff)
downloadmariadb-git-af6f0876ade33ad67e4a3f458a88ec21649656e2.tar.gz
Backport from trunk of:
Bug#12532830 - SIGFPE OR ASSERTION (PRECISION <= ((9 * 9) - 8*2)) && (DEC <= 30)
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/func_if.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result
index c70589a27b7..7946d8f328c 100644
--- a/mysql-test/r/func_if.result
+++ b/mysql-test/r/func_if.result
@@ -196,3 +196,17 @@ c
NULL
0
DROP TABLE t1;
+#
+# Bug#12532830
+# SIGFPE OR ASSERTION (PRECISION <= ((9 * 9) - 8*2)) && (DEC <= 30)
+#
+select
+sum(distinct(if('a',
+(select adddate(elt(convert(9999999999999999999999999999999999999,decimal(64,0)),count(*)),
+interval 1 day))
+, .1))) as foo;
+foo
+0.1
+Warnings:
+Warning 1292 Truncated incorrect DOUBLE value: 'a'
+Warning 1292 Truncated incorrect DOUBLE value: 'a'