mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Manually merge BUG#37145 to 5.1-bugteam
This commit is contained in:
28
mysql-test/suite/rpl/r/rpl_name_const.result
Normal file
28
mysql-test/suite/rpl/r/rpl_name_const.result
Normal file
@ -0,0 +1,28 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
==== Initialize ====
|
||||
[on 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);
|
||||
[on slave]
|
||||
select * from t1 order by id;
|
||||
id
|
||||
1234
|
||||
==== Clean up ====
|
||||
[on master]
|
||||
drop table t1;
|
||||
drop procedure test_procedure;
|
Reference in New Issue
Block a user