Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fd5d7fa7
Commit
fd5d7fa7
authored
Feb 14, 2008
by
mkindahl@dl145h.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing test rpl_events to not give false failures.
parent
8906700e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
mysql-test/suite/rpl/r/rpl_events.result
mysql-test/suite/rpl/r/rpl_events.result
+3
-1
mysql-test/suite/rpl/t/rpl_events.test
mysql-test/suite/rpl/t/rpl_events.test
+9
-1
No files found.
mysql-test/suite/rpl/r/rpl_events.result
View file @
fd5d7fa7
...
@@ -195,9 +195,11 @@ test slave_terminate SLAVESIDE_DISABLED 2
...
@@ -195,9 +195,11 @@ test slave_terminate SLAVESIDE_DISABLED 2
DROP EVENT test.slave_terminate;
DROP EVENT test.slave_terminate;
"Cleanup"
"Cleanup"
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t28953 (a INT);
CREATE EVENT event1 ON SCHEDULE EVERY 1 YEAR
CREATE EVENT event1 ON SCHEDULE EVERY 1 YEAR
DO BEGIN
DO BEGIN
select * from t
1
;
select * from t
28953
;
END;|
END;|
ALTER EVENT event1 RENAME TO event2;
ALTER EVENT event1 RENAME TO event2;
DROP EVENT event2;
DROP EVENT event2;
DROP TABLE t28953;
mysql-test/suite/rpl/t/rpl_events.test
View file @
fd5d7fa7
...
@@ -28,10 +28,12 @@ set binlog_format=statement;
...
@@ -28,10 +28,12 @@ set binlog_format=statement;
connection
master
;
connection
master
;
CREATE
TABLE
t28953
(
a
INT
);
DELIMITER
|
;
DELIMITER
|
;
CREATE
EVENT
event1
ON
SCHEDULE
EVERY
1
YEAR
CREATE
EVENT
event1
ON
SCHEDULE
EVERY
1
YEAR
DO
BEGIN
DO
BEGIN
select
*
from
t
1
;
select
*
from
t
28953
;
END
;
|
END
;
|
DELIMITER
;
|
DELIMITER
;
|
...
@@ -45,3 +47,9 @@ DROP EVENT event2;
...
@@ -45,3 +47,9 @@ DROP EVENT event2;
sync_slave_with_master
;
sync_slave_with_master
;
# Doing cleanup of the table referred to in the event to guarantee
# that there is no bad timing cauing it to try to access the table.
connection
master
;
DROP
TABLE
t28953
;
sync_slave_with_master
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment