summaryrefslogtreecommitdiff
path: root/mysql-test/r/csv.result
diff options
context:
space:
mode:
authorpetr@mysql.com <>2006-03-13 19:36:34 +0300
committerpetr@mysql.com <>2006-03-13 19:36:34 +0300
commit307b724bbc1d034d684857e3aa3b5957e7f38a70 (patch)
tree16df6bda76911bdd1dae072cff2c449de65a4318 /mysql-test/r/csv.result
parent64461db10f601eac927ba4ea4129d846ec1623f8 (diff)
downloadmariadb-git-307b724bbc1d034d684857e3aa3b5957e7f38a70.tar.gz
WL#3154 "Enable REPAIR for CSV tables".
This is the first commit. Cleanups are likely to follow after the merge.
Diffstat (limited to 'mysql-test/r/csv.result')
-rw-r--r--mysql-test/r/csv.result32
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/r/csv.result b/mysql-test/r/csv.result
index 9e63b82c29d..169cc7a6fb4 100644
--- a/mysql-test/r/csv.result
+++ b/mysql-test/r/csv.result
@@ -4993,6 +4993,38 @@ val
2
UNLOCK TABLES;
DROP TABLE test_concurrent_insert;
+CREATE TABLE test_repair_table ( val integer ) ENGINE = CSV;
+CHECK TABLE test_repair_table;
+Table Op Msg_type Msg_text
+test.test_repair_table check status OK
+REPAIR TABLE test_repair_table;
+Table Op Msg_type Msg_text
+test.test_repair_table repair status OK
+DROP TABLE test_repair_table;
+CREATE TABLE test_repair_table2 ( val integer ) ENGINE = CSV;
+SELECT * from test_repair_table2;
+val
+Warnings:
+Error 1194 Table 'test_repair_table2' is marked as crashed and should be repaired
+SELECT * from test_repair_table2;
+val
+test_repair_table2.CSM
+CHECK TABLE test_repair_table2;
+Table Op Msg_type Msg_text
+test.test_repair_table2 check status OK
+DROP TABLE test_repair_table2;
+CREATE TABLE test_repair_table3 ( val integer ) ENGINE = CSV;
+CHECK TABLE test_repair_table3;
+Table Op Msg_type Msg_text
+test.test_repair_table3 check error Corrupt
+REPAIR TABLE test_repair_table3;
+Table Op Msg_type Msg_text
+test.test_repair_table3 repair status OK
+SELECT * FROM test_repair_table3;
+val
+1
+4
+DROP TABLE test_repair_table3;
create table t1 (a int) engine=csv;
insert t1 values (1);
delete from t1;