summaryrefslogtreecommitdiff
path: root/mysql-test/t/events_bugs.test
diff options
context:
space:
mode:
authorMayank Prasad <mayank.prasad@oracle.com>2011-03-21 21:39:40 +0530
committerMayank Prasad <mayank.prasad@oracle.com>2011-03-21 21:39:40 +0530
commitb85573994168bd0e719a3ec282cecd515610f469 (patch)
tree373a0967df6b0c9c20c48c23cb7b51b5d7b9e26e /mysql-test/t/events_bugs.test
parent5a5dcb0f05f26be1f0892d2c7aa1076a6d521d4f (diff)
parentc8b724b2aa6dd0ccc5af1a2b7eb5b92271556ccb (diff)
downloadmariadb-git-b85573994168bd0e719a3ec282cecd515610f469.tar.gz
merge from 5.1 to 5.5 for bug#11751148
Diffstat (limited to 'mysql-test/t/events_bugs.test')
-rw-r--r--mysql-test/t/events_bugs.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/events_bugs.test b/mysql-test/t/events_bugs.test
index 8d9959f1b0a..f56823b33b1 100644
--- a/mysql-test/t/events_bugs.test
+++ b/mysql-test/t/events_bugs.test
@@ -1221,6 +1221,21 @@ SELECT event_name, originator FROM INFORMATION_SCHEMA.EVENTS;
DROP EVENT ev1;
SET GLOBAL server_id = @old_server_id;
+#
+# Bug#11751148: show events shows events in other schema
+#
+
+CREATE DATABASE event_test1;
+USE event_test1;
+CREATE EVENT ev1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
+CREATE DATABASE event_test2;
+USE event_test2;
+# Following show events should not show ev1
+SHOW EVENTS;
+DROP DATABASE event_test1;
+DROP DATABASE event_test2;
+
+
###########################################################################
#
# End of tests