Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Encode query and args to bytes before `%` #221

Merged
merged 1 commit into from Mar 10, 2014

Conversation

Projects
None yet
1 participant
Contributor

methane commented Mar 10, 2014

No description provided.

Contributor

methane commented Mar 10, 2014

conn.escape(bytes_obj) returns bytes on Python 2.
So when I have text and binary column, it is too difficult to avoid UnicodeError.

@methane methane added a commit that referenced this pull request Mar 10, 2014

@methane methane Merge pull request #221 from PyMySQL/py2-bytes-query
Encode query and args to bytes before `%`
633f9b3

@methane methane merged commit 633f9b3 into master Mar 10, 2014

1 check passed

default The Travis CI build passed
Details

@methane methane deleted the py2-bytes-query branch Feb 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment