-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for Unicode diagnostic messages for PostgreSQL & MySQL
Some drivers don't encode SQLSTATE and error messages with the same encoding. So far it looks like everyone might use UTF16LE. This code handles UTF8, UTF16LE, and UTF16BE with no configuration. (It does not handle UTF32.) The previous change converted the error message from bytes to Unicode, but missed the handling of the 2nd error message. When an attempt to concatenate was made, PyString_ConcatAndDel would fail causing the HY0000 error.
- Loading branch information
1 parent
b6679b2
commit 8277073
Showing
5 changed files
with
92 additions
and
31 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
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
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