diff options
author | Michael Widenius <monty@askmonty.org> | 2010-11-05 12:37:51 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-11-05 12:37:51 +0200 |
commit | 8380cf090bd6a7a19d3f6e59c6f56ad530286913 (patch) | |
tree | 4178c9a4656d1df6bfbabc07b9962deb25d57ab5 /mysql-test/r/merge_debug.result | |
parent | 0e648ff4f56ac68ddcf8335e928b38a90f1ccce5 (diff) | |
parent | 386f2806b4aecca9062fc685436f3cf47f7b747b (diff) | |
download | mariadb-git-8380cf090bd6a7a19d3f6e59c6f56ad530286913.tar.gz |
Automerge with 5.2
Diffstat (limited to 'mysql-test/r/merge_debug.result')
-rw-r--r-- | mysql-test/r/merge_debug.result | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/merge_debug.result b/mysql-test/r/merge_debug.result new file mode 100644 index 00000000000..b857ff597f2 --- /dev/null +++ b/mysql-test/r/merge_debug.result @@ -0,0 +1,24 @@ +set global storage_engine=myisam; +set session storage_engine=myisam; +drop table if exists crashed,t2,t3,t4; +SET @orig_debug=@@debug; +CREATE TABLE crashed (c1 INT); +CREATE TABLE t2 (c1 INT); +CREATE TABLE t3 (c1 INT); +CREATE TABLE t4 (c1 INT) ENGINE=MRG_MYISAM UNION=(crashed,t2,t3) INSERT_METHOD=LAST; +INSERT INTO crashed VALUES (10); +INSERT INTO t2 VALUES (20); +INSERT INTO t3 VALUES (30); +LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, crashed WRITE; +SET GLOBAL debug="+d,*,myisam_pretend_crashed_table_on_open"; +CREATE TRIGGER t1_ai AFTER INSERT ON crashed FOR EACH ROW INSERT INTO t2 VALUES(29); +SET GLOBAL debug=@orig_debug; +INSERT INTO t4 VALUES (39); +ERROR HY000: Table 't4' was not locked with LOCK TABLES +INSERT INTO crashed VALUES (11); +ERROR HY000: Table 'crashed' was not locked with LOCK TABLES +INSERT INTO t2 VALUES (21); +INSERT INTO t3 VALUES (31); +UNLOCK TABLES; +DROP TRIGGER t1_ai; +DROP TABLE t4,crashed,t2,t3; |