Bug #24381 | setString() put a wrong escaping character into some GBK encoded values | ||
---|---|---|---|
Submitted: | 17 Nov 2006 4:27 | Modified: | 22 Nov 2006 6:38 |
Reporter: | McEase Tu | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | mysql-connector-java-5.0.4 | OS: | Windows (Windows/Linux) |
Assigned to: | CPU Architecture: | Any |
[17 Nov 2006 4:27]
McEase Tu
[17 Nov 2006 13:14]
Mark Matthews
If the data ends up correct in the table on the master, but the binlog is incorrect, then it's more than likely a server issue (so I've adjusted the category accordingly). What version of the server are you using?
[20 Nov 2006 1:23]
McEase Tu
I've tried mysql-5.0.26 and mysql-5.1.11. Both of them have this problem. I think it's a bug of j-connector but not the server because when I execute the statement "insert into test values('黒')" through mysql command-line tool it won't generate wrong binlog.
[20 Nov 2006 15:43]
Mark Matthews
If it makes it into the master's table, it's not wrong escaping on the client's part. You can't demonstrate this error with the mysql command-line client, because you're using prepared statements with the JDBC driver.
[21 Nov 2006 2:02]
McEase Tu
The data in master table seems correct. The only problem is sometimes it generates incorrect binlog through JDBC's PreparedStatement. So, it's a bug of the server?
[22 Nov 2006 6:38]
Valeriy Kravchuk
Yes, it is a server bug. Looks like a duplicate of Bug #24492 (that has higher priority and verified already). Same problem with 0x5C, but for sjis there.