mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Added test to show bug in current union implementation
After merge fixes Portability fixes client/mysqltest.c: Fixed that unget() is done properly (needed for QNX where one can't do many ungetc() in a row) include/errmsg.h: After merge fixes mysql-test/mysql-test-run.sh: merge fix mysql-test/r/system_mysql_db.result: Updated results for 4.1 mysql-test/r/union.result: Added new test mysql-test/t/derived.test: Portability fix (for Mac OS X) mysql-test/t/system_mysql_db_refs.test: Remove warnings mysql-test/t/union.test: Added test to show bug in current union implementation (to be fixed in 4.1) scripts/mysql_create_system_tables.sh: Fix wrong column define scripts/mysql_fix_privilege_tables.sh: Fix for mysql-test-run scripts/mysql_fix_privilege_tables.sql: Merge with 4.0 to get comments. Updated so that it works with privilege tables for MySQL 3.23. sql/repl_failsafe.cc: After merge fix
This commit is contained in:
@ -907,3 +907,18 @@ n
|
||||
9
|
||||
10
|
||||
drop table t1;
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1);
|
||||
select * from t1 UNION select * from t1;
|
||||
i
|
||||
1
|
||||
select * from t1 UNION ALL select * from t1;
|
||||
i
|
||||
1
|
||||
1
|
||||
select * from t1 UNION select * from t1 UNION ALL select * from t1;
|
||||
i
|
||||
1
|
||||
1
|
||||
1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user