-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.3.8: unicode_literal always adding the _binary prefix #123
Comments
Sorry, but could you describe more detail? Is this problem is on Python 3 only? or Python 2 only? both? Original report (#106 (comment) ) was on Python 3.5.
What the "encoded value" exactly means? |
My debug session was on Python 3, but it might happen on Python 2 too.
Before the patch, |
The solution might be to replace
by
And probably the same for Python 2. |
@claudep: I think that is the right solution and is an oversight I made when suggesting the original change. |
fix falsely prefixing strings with _binary type identifier (PyMySQL#123)
- Based on PyMySQL#106 but now disabled by default - Can be enabled via 'binary_prefix' connection parameter - Added unit tests to verify behaviour fix falsely prefixing strings with _binary type identifier (PyMySQL#123)
After the commit 2617620,
unicode_literal
is always adding the_binary
prefix becausedb.literal
insideunicode_literal
is called on the encoded value (and encoded values are always bytes).This is a serious regression!
The text was updated successfully, but these errors were encountered: