summaryrefslogtreecommitdiff
path: root/mysql-test/r/archive.result
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2010-02-12 16:33:03 +0400
committerSergey Vojtovich <svoj@sun.com>2010-02-12 16:33:03 +0400
commit91f0212c68662f57d922e61ce3f5a5defd697949 (patch)
treef04955698b971556bf691b5f4e2a763f8fd288d1 /mysql-test/r/archive.result
parent6124451d9534b1a03e58724411c492d9de980cb4 (diff)
downloadmariadb-git-91f0212c68662f57d922e61ce3f5a5defd697949.tar.gz
BUG#48757 - missing .ARZ file causes server crash
Server crashes when accessing ARCHIVE table with missing .ARZ file. When opening a table, ARCHIVE didn't properly pass through error code from lower level azopen() to higher level open() method. mysql-test/r/archive.result: A test case for BUG#48757. mysql-test/t/archive.test: A test case for BUG#48757. storage/archive/ha_archive.cc: Pass through error code from azopen().
Diffstat (limited to 'mysql-test/r/archive.result')
-rw-r--r--mysql-test/r/archive.result9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/archive.result b/mysql-test/r/archive.result
index c620eb97cab..f14f6a39386 100644
--- a/mysql-test/r/archive.result
+++ b/mysql-test/r/archive.result
@@ -12728,3 +12728,12 @@ Table Op Msg_type Msg_text
test.t1 repair Error Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
test.t1 repair error Corrupt
DROP TABLE t1;
+#
+# BUG#48757 - missing .ARZ file causes server crash
+#
+CREATE TABLE t1(a INT) ENGINE=ARCHIVE;
+FLUSH TABLE t1;
+SELECT * FROM t1;
+ERROR HY000: Can't find file: 't1' (errno: 2)
+DROP TABLE t1;
+ERROR 42S02: Unknown table 't1'