summaryrefslogtreecommitdiff
path: root/mysql-test/t/csv.test
diff options
context:
space:
mode:
authorSergey Glukhov <gluh@mysql.com>2008-08-15 11:53:54 +0500
committerSergey Glukhov <gluh@mysql.com>2008-08-15 11:53:54 +0500
commit7eb1507ad17e1ed878a4c5e0fd2169542f36d429 (patch)
tree493de30713a4ba8185da9b027000cb08537bd10a /mysql-test/t/csv.test
parent5bafde319e5c6bb717a76bc07bb63f49b2fc8563 (diff)
downloadmariadb-git-7eb1507ad17e1ed878a4c5e0fd2169542f36d429.tar.gz
Bug#36638 mysqld crashes when open file limit is passed and general query log enabled
The problem: CSV storage engine open function returns success even thought it failed to open the data file The fix: return error Additional fixes: added MY_WME to my_open to avoid mysterious error message free share struct if open the file was unsuccessful
Diffstat (limited to 'mysql-test/t/csv.test')
-rw-r--r--mysql-test/t/csv.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/csv.test b/mysql-test/t/csv.test
index dd8c940ac44..722d6d1c141 100644
--- a/mysql-test/t/csv.test
+++ b/mysql-test/t/csv.test
@@ -1386,6 +1386,9 @@ UNLOCK TABLES;
# cleanup
DROP TABLE test_concurrent_insert;
+connection default;
+--disconnect con1
+--disconnect con2
#
# Test REPAIR/CHECK TABLE (5.1)
@@ -1784,4 +1787,20 @@ update t1 set c1="That" where c1="This";
select * from t1;
drop table t1;
+#
+# Bug#36638 mysqld crashes when open file limit is passed and general query log enabled
+#
+create table t1 (a int not null) engine=csv;
+lock tables t1 read;
+connect (con1,localhost,root,,);
+--connection con1
+--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.CSV
+# EE_FILENOTFOUND 29
+--error 29
+select * from t1;
+connection default;
+unlock tables;
+drop table t1;
+--disconnect con1
+
--echo End of 5.1 tests