mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
A fix (bug #5382: Server crashes after writing INTO OUTFILE)
This commit is contained in:
parent
5ddf724d5e
commit
cb81894a35
3 changed files with 63 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue