Bug #24264 Please make the cast_cs member of Item_char_typecast public
Submitted: 13 Nov 2006 14:18 Modified: 14 Dec 2006 18:52
Reporter: Philip Stoev Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.26 OS:Linux (Linux)
Assigned to: Jay Pipes CPU Architecture:Any

[13 Nov 2006 14:18] Philip Stoev
Description:
Hello,

The cast_cs member of the Item_char_typecast is private. This means that when examining the parse tree of a query, it is not possible to determine the charset that is to be used for a particular cast. In other words, it is impossible to differentiate between CAST AS CHAR and CAST AS BINARY items, because both are converted into Item_char_typecast objects that look identical from the outside except for the cast_cs member which is private.

How to repeat:
Attempt to access the cast_cs member of Item_char_typecast

Suggested fix:
Please make cast_cs public.
[14 Nov 2006 7:07] MySQL Verification Team
Thank you for the bug report
[14 Dec 2006 18:52] Philip Stoev
Hello,

It turns out that more classes require changes, so I am closing this bug. I will open a new one when I come up with a complete patch. Thank you very much for your time.