summaryrefslogtreecommitdiff
path: root/mysql-test/r/csv.result
diff options
context:
space:
mode:
authorunknown <petr/cps@mysql.com/owlet.>2006-07-11 15:54:52 +0400
committerunknown <petr/cps@mysql.com/owlet.>2006-07-11 15:54:52 +0400
commit83aade738787f991122b3dcf519789eba7becb93 (patch)
tree14b80f2cbea92c4466d455c702b0ccc75109e0b9 /mysql-test/r/csv.result
parent0eaae4157d4bd467fa7fecf88bc37c81c8d069b1 (diff)
downloadmariadb-git-83aade738787f991122b3dcf519789eba7becb93.tar.gz
Fix Bug#15205 "Select from CSV table without the datafile causes crash"
mysql-test/r/csv.result: update result file mysql-test/t/csv.test: add a test for the bug sql/examples/ha_tina.cc: move open() call before my_hash_insert, so that we don't insert invalid share to the hash. To avoid other possible problems also add hash_delete(), so that the share is removed from hash before it is freed.
Diffstat (limited to 'mysql-test/r/csv.result')
-rw-r--r--mysql-test/r/csv.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/csv.result b/mysql-test/r/csv.result
index 3c87c1f4b92..f3e91a663b8 100644
--- a/mysql-test/r/csv.result
+++ b/mysql-test/r/csv.result
@@ -5000,3 +5000,13 @@ insert t1 values (1),(2),(3),(4),(5);
truncate table t1;
affected rows: 0
drop table t1;
+create table bug15205 (val int(11) default null) engine=csv;
+create table bug15205_2 (val int(11) default null) engine=csv;
+select * from bug15205;
+ERROR HY000: Got error 1 from storage engine
+select * from bug15205_2;
+val
+select * from bug15205;
+val
+drop table bug15205;
+drop table bug15205_2;