Please sign in to comment.
Make :encoding option work on MySQL even if config file specifies dif…
…ferent encoding (Fixes #300, again) After discussions with tmm1, this seems like the best way to work around the bug in libmysqlclient, which makes configuration file settings taken from READ_DEFAULT_GROUP override an explicitly given SET_CHARSET_NAME option. It uses a "SET NAMES" SQL query after connection to attempt to ensure the connection will use the correct encoding. This is not safe across implicit reconnects, but Sequel hasn't used those for some time.
- Loading branch information...
Showing with 15 additions and 6 deletions.