Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
f2cfa04
commit a911579
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters