Bug #2367 INSERT() results are not consistent and depending on charset
Submitted: 13 Jan 2004 4:05 Modified: 15 Jan 2004 1:30
Reporter: Alexander Barkov Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:
Assigned to: Alexander Barkov CPU Architecture:Any

[13 Jan 2004 4:05] Alexander Barkov
Description:
mysql> select insert('12345',10,2,'abcd');
+-----------------------------+
| insert('12345',10,2,'abcd') |
+-----------------------------+
| 12345                       |
+-----------------------------+
1 row in set (0.06 sec)

mysql> select insert(_utf8'12345',10,2,_utf8'abcd');
+---------------------------------------+
| insert(_utf8'12345',10,2,_utf8'abcd') |
+---------------------------------------+
| 12345abcd                             |
+---------------------------------------+
1 row in set (0.00 sec)

The results should be the same. The second one is wrong.

How to repeat:
Run the above.
[15 Jan 2004 1:30] Alexander Barkov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html