Bug #4105 Server crash on attempt to prepare a statement with character set introducer
Submitted: 11 Jun 2004 12:24 Modified: 18 Jun 2004 0:49
Reporter: Konstantin Osipov (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.1.*, 5.* OS:Any (All)
Assigned to: Konstantin Osipov CPU Architecture:Any

[11 Jun 2004 12:24] Konstantin Osipov
Description:
This query crashes the server:
PREPARE stmt FROM "select _utf8 'A' collate utf8_bin = ?";

How to repeat:
PREPARE stmt FROM "select _utf8 'A' collate utf8_bin = ?";

Suggested fix:
Do not call val_str unless you have fix_fields done.
[11 Jun 2004 12:26] Konstantin Osipov
Verified against 4.1-bk
[17 Jun 2004 23:29] Konstantin Osipov
bk commit - 4.1 tree (konstantin:1.1929) BUG#4105,
bk commit - 4.1 tree (konstantin:1.1930) BUG#4105 (test case)
[18 Jun 2004 0:49] Konstantin Osipov
Fixed in 4.1.3