mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
5487d7a8c0
Removed usage of @r/result as this made life hard when testing different table handlers. Allow concurrent inserts if no update/binary log. Don't remove key_cache at flush tables. Fixed bug in SELECT DISTINCT SUM()...
33 lines
893 B
Text
33 lines
893 B
Text
#this one assumes we are ignoring updates on tables in database foo, but doing
|
|
#the ones in database bar
|
|
source include/master-slave.inc;
|
|
connection master;
|
|
drop database if exists foo;
|
|
create database foo;
|
|
drop database if exists bar;
|
|
create database bar;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
drop table if exists foo.foo;
|
|
create table foo.foo (n int);
|
|
insert into foo.foo values(4);
|
|
connection master;
|
|
drop table if exists foo.foo;
|
|
create table foo.foo (n int);
|
|
insert into foo.foo values(5);
|
|
drop table if exists bar.bar;
|
|
create table bar.bar (m int);
|
|
insert into bar.bar values(15);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select foo.foo.n,bar.bar.m from foo.foo,bar.bar;
|
|
connection master;
|
|
drop database if exists bar;
|
|
drop database if exists foo;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
drop database if exists bar;
|
|
drop database if exists foo;
|