mirror of
https://github.com/MariaDB/server.git
synced 2025-11-16 20:23:18 +03:00
Fix for bug #10966: Variance functions return wrong data type.
This commit is contained in:
@@ -1089,3 +1089,17 @@ SUM(a)
|
||||
6
|
||||
DROP TABLE t1;
|
||||
set div_precision_increment= @sav_dpi;
|
||||
create table t1 select variance(0);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`variance(0)` double(8,4) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 select stddev(0);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`stddev(0)` double(8,4) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
|
||||
@@ -703,3 +703,14 @@ SELECT SUM(a) FROM t1 GROUP BY b/c;
|
||||
DROP TABLE t1;
|
||||
set div_precision_increment= @sav_dpi;
|
||||
|
||||
#
|
||||
# Bug #10966: Variance functions return wrong data type
|
||||
#
|
||||
|
||||
create table t1 select variance(0);
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
create table t1 select stddev(0);
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user