Comment 5 for bug 311104

Revision history for this message
Padraig O'Sullivan (posulliv) wrote :

I tried to create a test case for this as Jay mentioned. I wasn't too sure what the procedure for this is so I added the following to csv.test:

#
# Bug#311104
# CSV engine reports "out of memory" when you select
# from a missing file
#
--disable_warnings
drop table if exists t1;
--enable_warnings

create table t1 (val int not null) engine=csv;
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.CSV

--error 1017
select * from t1;

I pushed my modified version of csv.test and csv.result to my branch on Launchpad. Is this the correct way to submit a test case with a bug fix? Or should a new file be created with the test case in it?

I realize now I should have created the test case before working on the bug but I'll know to do this in the future.

Thanks, Padraig