Bug #72712 | No way to configure Connector JDBC to not do extra queries on connection | ||
---|---|---|---|
Submitted: | 21 May 2014 19:54 | Modified: | 7 Jul 2014 16:49 |
Reporter: | Harrison Fisk | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S5 (Performance) |
Version: | 5.1.30 | OS: | Any |
Assigned to: | Jess Balint | CPU Architecture: | Any |
[21 May 2014 19:54]
Harrison Fisk
[22 May 2014 8:19]
Tonci Grgin
Harrison, Thanks for your bug report, we are working on solution.
[7 Jul 2014 16:49]
Daniel So
Added the following item to the Connector/J 5.1.32 changelog: "Trying to use any character sets other than UTF-8 for communications between client programs and the MySQL server caused Connector/J to perform extra queries after the initial connection, resulting in higher latency and overhead for the connection. To prevent extra queries, this fix eliminates the mechanism of setting the character set to values other than 'utf-8' by issuing a SET NAME statement to the server, and allows the use of the connection property characterEncoding to set the character set value in Connector/J's response packet during handshake."