krummas / DrizzleJDBC

A BSD licensed JDBC driver for Drizzle and MySQL
BSD 3-Clause "New" or "Revised" License
31 stars 22 forks source link

Broken handling of non-ASCII characters in SQL queries #4

Closed cederberg closed 12 years ago

cederberg commented 12 years ago

The following SQL query breaks in the current version:

SELECT 'åäö'

Seems to be caused by confusion regarding bytes and characters in the Utils class, but perhaps it is found elsewhere in the project as well.

Couldn't really verify this, since I don't have a Drizzle installation (to run the tests on). Just using Drizzle JDBC for MySQL connectivity right now.

krummas commented 12 years ago

could not reproduce the bug (ie selecting åäö works for me) , but your code is alot cleaner, thanks!