Bug #3630 Server crash by: SELECT * INTO OUTFILE

Submitted: 2 May 2004 16:04 Modified: 3 May 2004 8:13
Reporter: Manfred Wiedemeier Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.1.1a-alpha OS:Windows (Windows XP SP1)
Assigned to: CPU Architecture:Any

[2 May 2004 16:04] Manfred Wiedemeier
Description:
Server (mysqld-opt.exe) crash by the following command:

SELECT * INTO OUTFILE 'user.dat'
FIELDS TERMINATED BY ','
FROM `MYSQL`.`USER`;

but works with:

SELECT * INTO OUTFILE 'user.dat'
FROM `MYSQL`.`USER`;

But if the outputfile exists, the Server crash again.

How to repeat:

SELECT * INTO OUTFILE 'user.dat'
FIELDS TERMINATED BY ','
FROM `MYSQL`.`USER`;
[2 May 2004 17:44] MySQL Verification Team
I wasn't able to repeat the behavior reported:

C:\servers\4.1.1\bin>mysql -uroot mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.1a-alpha

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SELECT * INTO OUTFILE 'user.dat'
    -> FIELDS TERMINATED BY ','
    -> FROM `MYSQL`.`USER`;
Query OK, 4 rows affected (0.14 sec)

mysql> SELECT * INTO OUTFILE 'user.dat'
    -> FIELDS TERMINATED BY ','
    -> FROM `MYSQL`.`USER`;
ERROR 1086 (HY000): File 'user.dat' already exists
mysql>
[3 May 2004 8:13] Guilhem Bichot
That's BUG#2123, which is fixed in the source development tree since January (so the bug is fixed in the upcoming 4.1.2).
Thank you for your bug report!

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.