summaryrefslogtreecommitdiff
path: root/mysql-test/t/type_float.test
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-09-27 15:11:39 +0500
committerunknown <hf@deer.(none)>2005-09-27 15:11:39 +0500
commit087f7cc82adf16138f701cede7d295778db06681 (patch)
tree3a2825c14b94739213cdacde3f03625e8237036c /mysql-test/t/type_float.test
parentab7ec7ee8f4ac8c751c6f0d84d8314154146bf10 (diff)
downloadmariadb-git-087f7cc82adf16138f701cede7d295778db06681.tar.gz
Fix for bug #13372 (decimal union)
mysql-test/r/type_decimal.result: test result fixed mysql-test/r/type_float.result: test result fixed mysql-test/t/type_decimal.test: test case added mysql-test/t/type_float.test: test case added sql/item.cc: Fixed counting of the max_length for the REAL_RESULT
Diffstat (limited to 'mysql-test/t/type_float.test')
-rw-r--r--mysql-test/t/type_float.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/type_float.test b/mysql-test/t/type_float.test
index 2d4a90911a1..abaf72ea2ed 100644
--- a/mysql-test/t/type_float.test
+++ b/mysql-test/t/type_float.test
@@ -149,4 +149,17 @@ select * from t1 where reckey=109;
select * from t1 where reckey=1.09E2;
drop table t1;
+#
+# Bug #13372 (decimal union)
+#
+create table t1 (d double(10,1));
+create table t2 (d double(10,9));
+insert into t1 values ("100000000.0");
+insert into t2 values ("1.23456780");
+create table t3 select * from t2 union select * from t1;
+select * from t3;
+show create table t3;
+drop table t1, t2, t3;
+
+
# End of 4.1 tests