summaryrefslogtreecommitdiff
path: root/mysql-test/t/information_schema.test
diff options
context:
space:
mode:
authorunknown <gluh@eagle.intranet.mysql.r18.ru>2005-07-27 16:17:05 +0500
committerunknown <gluh@eagle.intranet.mysql.r18.ru>2005-07-27 16:17:05 +0500
commit983a836f74a3b439a8e90b6e3aaee5a454842396 (patch)
treef88622d84fe76a53d8622b624dcf46612f8d5ae4 /mysql-test/t/information_schema.test
parent663ad3432639410fa5784cfbf5ea968436eeabd5 (diff)
downloadmariadb-git-983a836f74a3b439a8e90b6e3aaee5a454842396.tar.gz
Fix for bug#12127 triggers do not show in info_schema before they are used if set to the database(2nd version)
use db name of table which trigger belongs to instead of thd->db name during trigger body parsing
Diffstat (limited to 'mysql-test/t/information_schema.test')
-rw-r--r--mysql-test/t/information_schema.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/information_schema.test b/mysql-test/t/information_schema.test
index f13a29f07ad..a8fc75f8aa4 100644
--- a/mysql-test/t/information_schema.test
+++ b/mysql-test/t/information_schema.test
@@ -622,3 +622,14 @@ select column_name, NUMERIC_PRECISION, NUMERIC_SCALE
from information_schema.columns
where table_name='t1';
drop table t1;
+
+#
+# Bug #12127 triggers do not show in info_schema before they are used if set to the database
+#
+create table t1 (f1 integer);
+create trigger tr1 after insert on t1 for each row set @test_var=42;
+use information_schema;
+select trigger_schema, trigger_name from triggers where
+trigger_name='tr1';
+use test;
+drop table t1;