diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-29 16:50:51 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-29 16:50:51 +0400 |
commit | c9245922d6dc5a7dedca24c160c0ae791d55aa69 (patch) | |
tree | 312d39a6debcdf62977d7c54be6dffd00f1e5c3f /mysql-test/t/csv.test | |
parent | 51b78382cdff7576747149acae51f8ff9034b208 (diff) | |
download | mariadb-git-c9245922d6dc5a7dedca24c160c0ae791d55aa69.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.
Diffstat (limited to 'mysql-test/t/csv.test')
-rw-r--r-- | mysql-test/t/csv.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/csv.test b/mysql-test/t/csv.test index ac628f96a0f..67295e8756f 100644 --- a/mysql-test/t/csv.test +++ b/mysql-test/t/csv.test @@ -1804,4 +1804,17 @@ unlock tables; drop table t1; --disconnect con1 +# +# Bug#41441 repair csv table crashes debug server +# +# Note: The test should be removed after Bug#33717 is fixed + +create table t1(a enum ('a') not null) engine=csv; +insert into t1 values (2); +--error ER_CRASHED_ON_USAGE +select * from t1 limit 1; +repair table t1; +select * from t1 limit 1; +drop table t1; + --echo End of 5.1 tests |