mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt mysql-test/r/insert_select.result: Auto merged mysql-test/t/insert_select.test: Auto merged sql/field.h: Auto merged sql/item.cc: Auto merged sql/item_sum.cc: Auto merged sql/sql_select.h: Auto merged mysql-test/r/create.result: merging mysql-test/r/temp_table.result: SCCS merged mysql-test/r/type_float.result: merging mysql-test/r/union.result: merging mysql-test/t/temp_table.test: merging
This commit is contained in:
@@ -164,6 +164,21 @@ DROP TABLE t1;
|
||||
|
||||
--echo End of 4.1 tests.
|
||||
|
||||
#
|
||||
# Bug #24791: Union with AVG-groups generates wrong results
|
||||
#
|
||||
CREATE TABLE t1 ( c FLOAT( 20, 14 ) );
|
||||
INSERT INTO t1 VALUES( 12139 );
|
||||
|
||||
CREATE TABLE t2 ( c FLOAT(30,18) );
|
||||
INSERT INTO t2 VALUES( 123456 );
|
||||
|
||||
SELECT AVG( c ) FROM t1 UNION SELECT 1;
|
||||
SELECT 1 UNION SELECT AVG( c ) FROM t1;
|
||||
SELECT 1 UNION SELECT * FROM t2 UNION SELECT 1;
|
||||
SELECT c/1 FROM t1 UNION SELECT 1;
|
||||
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
#
|
||||
# Test truncate with temporary tables
|
||||
|
||||
Reference in New Issue
Block a user