Bug #8248 QUOTE() returns bad results

Submitted: 1 Feb 2005 23:30 Modified: 3 Feb 2005 5:39
Reporter: Dean Ellis Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:4.0.24 OS:
Assigned to: Jim Winstead CPU Architecture:Any

[1 Feb 2005 23:30] Dean Ellis
Description:
QUOTE() returns bad results.

How to repeat:
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 SELECT 1 UNION SELECT 2 UNION SELECT 3;
SELECT QUOTE('A') FROM t1;

+-----------------+
| QUOTE('A')      |
+-----------------+
| 'A'             |
| '\'A\''         |
| '\'\\\'A\\\'\'' |
+-----------------+

Suggested fix:
n/a
[2 Feb 2005 17:45] Jim Winstead
Pushed to 4.0.
[3 Feb 2005 5:39] Paul DuBois
Mentioned in 4.0.24 change notes.

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

Page generated in 0.051 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.