Commit f37a5879 authored by 's avatar

Bug #44331 Restore of database with events produces warning in replication

Update the test case for BUG#44331 to fix the push build failure.
parent 7aa88fcb
...@@ -212,21 +212,37 @@ Warnings: ...@@ -212,21 +212,37 @@ Warnings:
Note 1449 The user specified as a definer ('user44331'@'%') does not exist Note 1449 The user specified as a definer ('user44331'@'%') does not exist
#on master #on master
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_1' || EVENT_NAME='event44331_2' || where EVENT_NAME='event44331_1';
EVENT_NAME='event44331_3' || EVENT_NAME='event44331_4';
EVENT_SCHEMA EVENT_NAME DEFINER EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_1 root@localhost test event44331_1 root@localhost
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_2';
EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_2 root@localhost test event44331_2 root@localhost
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_3';
EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_3 root@localhost test event44331_3 root@localhost
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_4';
EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_4 user44331@% test event44331_4 user44331@%
#on slave #on slave
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_1' || EVENT_NAME='event44331_2' || where EVENT_NAME='event44331_1';
EVENT_NAME='event44331_3' || EVENT_NAME='event44331_4';
EVENT_SCHEMA EVENT_NAME DEFINER EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_1 root@localhost test event44331_1 root@localhost
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_2';
EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_2 root@localhost test event44331_2 root@localhost
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_3';
EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_3 root@localhost test event44331_3 root@localhost
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_4';
EVENT_SCHEMA EVENT_NAME DEFINER
test event44331_4 user44331@% test event44331_4 user44331@%
SET @@global.event_scheduler= @old_event_scheduler; SET @@global.event_scheduler= @old_event_scheduler;
DROP TABLE t28953; DROP TABLE t28953;
......
...@@ -76,15 +76,25 @@ CREATE /*!50000 DEFINER='user44331' */ EVENT event44331_4 ...@@ -76,15 +76,25 @@ CREATE /*!50000 DEFINER='user44331' */ EVENT event44331_4
--echo #on master --echo #on master
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_1' || EVENT_NAME='event44331_2' || where EVENT_NAME='event44331_1';
EVENT_NAME='event44331_3' || EVENT_NAME='event44331_4'; select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_2';
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_3';
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_4';
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
--echo #on slave --echo #on slave
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_1' || EVENT_NAME='event44331_2' || where EVENT_NAME='event44331_1';
EVENT_NAME='event44331_3' || EVENT_NAME='event44331_4'; select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_2';
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_3';
select EVENT_SCHEMA, EVENT_NAME, DEFINER from information_schema.events
where EVENT_NAME='event44331_4';
connection master; connection master;
SET @@global.event_scheduler= @old_event_scheduler; SET @@global.event_scheduler= @old_event_scheduler;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment