diff options
author | unknown <serg@serg.mylan> | 2004-05-11 12:19:37 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-05-11 12:19:37 +0200 |
commit | 76bc67711723bfa0eeda33798c706d9e333bbb30 (patch) | |
tree | a1714a23c4ab0a10dccf1dfc7509b53b00ebb03d /mysql-test/r | |
parent | 2b4a56b9f32d794f54b169d90d422d143320cfd7 (diff) | |
download | mariadb-git-76bc67711723bfa0eeda33798c706d9e333bbb30.tar.gz |
bug#3612 - Item_func_div set decimals incorrectly
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/type_float.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/type_float.result b/mysql-test/r/type_float.result index e85bced353a..c9996e9c9f3 100644 --- a/mysql-test/r/type_float.result +++ b/mysql-test/r/type_float.result @@ -67,6 +67,21 @@ select min(a) from t1; min(a) -0.010 drop table t1; +create table t1 (c1 double, c2 varchar(20)); +insert t1 values (121,"16"); +select c1 + c1 * (c2 / 100) as col from t1; +col +140.36 +create table t2 select c1 + c1 * (c2 / 100) as col from t1; +select * from t2; +col +140.36 +show create table t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `col` double default NULL +) TYPE=MyISAM +drop table t1,t2; create table t1 (f float, f2 float(24), f3 float(6,2), d double, d2 float(53), d3 double(10,3), de decimal, de2 decimal(6), de3 decimal(5,2), n numeric, n2 numeric(8), n3 numeric(5,6)); show full columns from t1; Field Type Null Key Default Extra Privileges |