Workaround: Re: weird mysql problem on linux, international chars truncates varchar
Posted by: Ryan Thompson
Date: September 05, 2006 06:39AM

Continuing with the previous test case, I have found that adding an explicit cast to CHAR fixes the problem.

However, shouldn't the result of the CHAR() function always be a CHAR?

mysql> insert into test.cc values(concat('test',cast(char(conv(8365,16,10)) as char),'スト'));
Query OK, 1 row affected (0.00 sec)

mysql> select * from test.cc;
+------------+
| a |
+------------+
| test |
| testテスト |
| testテスト |
+------------+
3 rows in set (0.00 sec)

Options: ReplyQuote


Subject
Views
Written By
Posted
Workaround: Re: weird mysql problem on linux, international chars truncates varchar
1675
September 05, 2006 06:39AM


Sorry, you can't reply to this topic. It has been closed.

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.