mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -152,6 +152,27 @@ SELECT * FROM t1;
|
||||
i
|
||||
DROP TABLE t1;
|
||||
End of 4.1 tests.
|
||||
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;
|
||||
AVG( c )
|
||||
12139
|
||||
1
|
||||
SELECT 1 UNION SELECT AVG( c ) FROM t1;
|
||||
1
|
||||
1
|
||||
12139
|
||||
SELECT 1 UNION SELECT * FROM t2 UNION SELECT 1;
|
||||
1
|
||||
1
|
||||
123456
|
||||
SELECT c/1 FROM t1 UNION SELECT 1;
|
||||
c/1
|
||||
12139
|
||||
1
|
||||
DROP TABLE t1, t2;
|
||||
create temporary table t1 (a int);
|
||||
insert into t1 values (4711);
|
||||
select * from t1;
|
||||
|
Reference in New Issue
Block a user