summaryrefslogtreecommitdiff
path: root/mysql-test/t/sp-prelocking.test
diff options
context:
space:
mode:
authorkostja@vajra.(none) <>2007-05-18 12:29:06 +0400
committerkostja@vajra.(none) <>2007-05-18 12:29:06 +0400
commit1016aa36ec5335e1b56a3cbf7701afc355ada6a6 (patch)
treec98b620d9518b959ae0997686036e4e312f990b1 /mysql-test/t/sp-prelocking.test
parent6d6674e71f8060ab396a5b56cdb505acf93f6c32 (diff)
downloadmariadb-git-1016aa36ec5335e1b56a3cbf7701afc355ada6a6.tar.gz
Bug #27907 "Misleading error message when opening/locking tables"
Adjust the check that defines the error message to be returned.
Diffstat (limited to 'mysql-test/t/sp-prelocking.test')
-rw-r--r--mysql-test/t/sp-prelocking.test31
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/t/sp-prelocking.test b/mysql-test/t/sp-prelocking.test
index cc3e3b93e06..ec5b7fbad7c 100644
--- a/mysql-test/t/sp-prelocking.test
+++ b/mysql-test/t/sp-prelocking.test
@@ -301,5 +301,36 @@ deallocate prepare stmt;
drop function bug19634;
drop table t1, t2, t3;
+#
+# Bug #27907 Misleading error message when opening/locking tables
+#
+
+--disable_warnings
+drop table if exists bug_27907_logs;
+drop table if exists bug_27907_t1;
+--enable_warnings
+
+create table bug_27907_logs (a int);
+create table bug_27907_t1 (a int);
+
+delimiter |;
+
+create trigger bug_27907_t1_ai after insert on bug_27907_t1
+for each row
+begin
+ insert into bug_27907_logs (a) values (1);
+end|
+
+delimiter ;|
+
+drop table bug_27907_logs;
+
+#
+# was failing before with error ER_NOT_LOCKED
+#
+--error ER_NO_SUCH_TABLE
+insert into bug_27907_t1(a) values (1);
+
+drop table bug_27907_t1;
--echo End of 5.0 tests