A fix (bug #5382: Server crashes after writing INTO OUTFILE)

This commit is contained in:
unknown 2004-10-10 14:40:24 +05:00
commit cb81894a35
3 changed files with 63 additions and 17 deletions

View file

@ -2,6 +2,10 @@
# test of into outfile|dumpfile
#
--disable_warnings
drop table if exists t1;
--enable_warnings
# We need to check that we have 'file' privilege.
#drop table if exists t1;
@ -26,3 +30,15 @@
#INSERT INTO t VALUES ('2002-12-20 12:01:20','',1,"aaa","bbb");
#select * from t into outfile "check";
#drop table if exists t;
#
# Bug #5382: 'explain select into outfile' crashes the server
#
CREATE TABLE t1 (a INT);
EXPLAIN
SELECT *
INTO OUTFILE '/tmp/t1.txt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n'
FROM t1;
DROP TABLE t1;