summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2008-12-29 16:50:51 +0400
committerSergey Glukhov <Sergey.Glukhov@sun.com>2008-12-29 16:50:51 +0400
commit47c0ec508467b4941e6e388e33dc688b7247befb (patch)
tree312d39a6debcdf62977d7c54be6dffd00f1e5c3f /mysql-test/r
parent39442f0903378d3a4866d09b4846f52a860abc29 (diff)
downloadmariadb-git-47c0ec508467b4941e6e388e33dc688b7247befb.tar.gz
Bug#41441 repair csv table crashes debug server
The problem: data file can not be deleted on win because there is another opened instance of this file. Data file might be opened twice, on table opening stage and during write_row execution. We need to close both instances to satisfy Win. mysql-test/r/csv.result: test result mysql-test/t/csv.test: test case storage/csv/ha_tina.cc: The problem: data file can not be deleted on win because there is another opened instance of this file. Data file might be opened twice, on table opening stage and during write_row execution. We need to close both instances to satisfy Win.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/csv.result13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/csv.result b/mysql-test/r/csv.result
index 8bc6114dbc2..9deaf55c535 100644
--- a/mysql-test/r/csv.result
+++ b/mysql-test/r/csv.result
@@ -5394,4 +5394,17 @@ select * from t1;
ERROR HY000: File './test/t1.CSV' not found (Errcode: 2)
unlock tables;
drop table t1;
+create table t1(a enum ('a') not null) engine=csv;
+insert into t1 values (2);
+Warnings:
+Warning 1265 Data truncated for column 'a' at row 1
+select * from t1 limit 1;
+ERROR HY000: Table 't1' is marked as crashed and should be repaired
+repair table t1;
+Table Op Msg_type Msg_text
+test.t1 repair Warning Data truncated for column 'a' at row 1
+test.t1 repair status OK
+select * from t1 limit 1;
+a
+drop table t1;
End of 5.1 tests