mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
myrg_rrnd.c merge + insert OK
myrg_info.c merge + insert OK mymrgdef.h merge + insert OK mrg000001.test test for the above mysql-test-run compatibility (FreeBSD) changes from mysql-4.0 backpropagated mysql-test/mysql-test-run: compatibility (FreeBSD) changes from mysql-4.0 backpropagated myisammrg/mymrgdef.h: merge + insert OK myisammrg/myrg_info.c: merge + insert OK myisammrg/myrg_rrnd.c: merge + insert OK
This commit is contained in:
17
mysql-test/t/3.23/mrg000001.test
Normal file
17
mysql-test/t/3.23/mrg000001.test
Normal file
@ -0,0 +1,17 @@
|
||||
DROP TABLE IF EXISTS test1;
|
||||
DROP TABLE IF EXISTS test2;
|
||||
DROP TABLE IF EXISTS test3;
|
||||
|
||||
CREATE TABLE test1 (incr int not null, othr int not null, primary key(incr));
|
||||
CREATE TABLE test2 (incr int not null, othr int not null, primary key(incr));
|
||||
CREATE TABLE test3 (incr int not null, othr int not null, primary key(incr))
|
||||
TYPE=MERGE UNION=(test1,test2);
|
||||
|
||||
@r/3.23/mrg000001.dummy.result SELECT * from test3;
|
||||
|
||||
INSERT INTO test1 VALUES ( 1,10),( 3,53),( 5,21),( 7,12),( 9,17);
|
||||
INSERT INTO test2 VALUES ( 2,24),( 4,33),( 6,41),( 8,26),( 0,32);
|
||||
INSERT INTO test1 VALUES (11,20),(13,43),(15,11),(17,22),(19,37);
|
||||
INSERT INTO test2 VALUES (12,25),(14,31),(16,42),(18,27),(10,30);
|
||||
|
||||
@r/3.23/mrg000001.result SELECT * from test3 where incr in (1,2,3,4) order by othr;
|
Reference in New Issue
Block a user