summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-06-21 15:17:07 +0500
committerram@gw.mysql.r18.ru <>2004-06-21 15:17:07 +0500
commitdf727fbb657d1b55c390b81d220bef0fa1d9e894 (patch)
tree9c1133d00b2617ead44ce0898b87b6c9088f1a9b /mysql-test
parent4680a23867de7b13e07c6eb182354040535634b6 (diff)
downloadmariadb-git-df727fbb657d1b55c390b81d220bef0fa1d9e894.tar.gz
a fix (bug #4198: Incorrect key file for table).
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/delete.result10
-rw-r--r--mysql-test/t/delete.test11
2 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/r/delete.result b/mysql-test/r/delete.result
index f1acc5d2dfa..c6b7a40214d 100644
--- a/mysql-test/r/delete.result
+++ b/mysql-test/r/delete.result
@@ -120,3 +120,13 @@ a b
0 10
1 11
drop table t11, t12, t2;
+create table t1 (a int, b int, unique key (a), key (b));
+insert into t1 values (3, 3), (7, 7);
+delete t1 from t1 where a = 3;
+check table t1;
+Table Op Msg_type Msg_text
+test.t1 check status OK
+select * from t1;
+a b
+7 7
+drop table t1;
diff --git a/mysql-test/t/delete.test b/mysql-test/t/delete.test
index e370b545eff..56c8ce77627 100644
--- a/mysql-test/t/delete.test
+++ b/mysql-test/t/delete.test
@@ -98,3 +98,14 @@ select * from t11;
delete ignore from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
select * from t11;
drop table t11, t12, t2;
+
+#
+# Bug #4198: deletion and KEYREAD
+#
+
+create table t1 (a int, b int, unique key (a), key (b));
+insert into t1 values (3, 3), (7, 7);
+delete t1 from t1 where a = 3;
+check table t1;
+select * from t1;
+drop table t1;