Use _binary prefix for bytes/bytearray parameters (now optional)#140
Conversation
- Based on PyMySQL#106 but now disabled by default - Can be enabled via 'binary_prefix' connection parameter - Added unit tests to verify behaviour
|
thanks |
|
Excited to see this merged, my logs have been full of the spurious "invalid utf8" mysql warning since I switched to storing binary UUIDs due to this. Had to do some digging to find that this was underlying cause of sqlalchemy issue: https://bitbucket.org/zzzeek/sqlalchemy/issues/3804/invalid-utf8-character-string-warning-on Doesn't look like will get any attention from that end, since maintainer isn't running mysql, so isn't seeing issue. |
|
@methane do you plan to cut a release for this change soon? |
|
It seems Oracle start releasing MySQL Connector/C 6.1.9 with vs14 support. Currently, only win32 zip is upload. |
|
I released mysqlclient 1.4.10 with Python 3.5 & 3.6 * 32bit & 64bit on Windows. |
This should hopefully address the problems of the previous attempt (#106, #123). An optional connection parameter is used to enable the behaviour. I've also added a unit test to check expected query parameter handling.