blob: ae05b5cf3c0cb124c6648dfe524d5cf4d9da468e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
include/master-slave.inc
[connection master]
connection master;
DROP FUNCTION test.f1;
DROP TABLE IF EXISTS test.t1;
create table test.t1 (a int, PRIMARY KEY(a));
create function test.f1(i int) returns int
begin
insert into test.t1 values(i);
return 0;
end//
select test.f1(1);
test.f1(1)
0
select test.f1(2);
test.f1(2)
0
select * from test.t1;
a
1
2
connection slave;
connection slave;
select * from test.t1;
a
1
2
connection master;
DROP FUNCTION test.f1;
DROP TABLE test.t1;
connection slave;
include/rpl_end.inc
|