summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/r/rpl_name_const.result
blob: 7e91cf474abd56da18c94d6a274d6515001106f4 (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
include/master-slave.inc
[connection master]
==== Initialize ====
connection master;
create table t1 (id int);
==== create a procedure that has a column aliase in a subquery ====
drop procedure if exists test_procedure;
create procedure test_procedure(_id int)
begin
insert into t1 (id)
select a.id
from 
( select _id as id ) a;
end;$$
==== enable the binary log, then call the procedure ====
call test_procedure(1234);
connection slave;
select * from t1 order by id;
id
1234
==== Clean up ====
connection master;
drop table t1;
drop procedure test_procedure;
include/rpl_end.inc