]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed unicode support for PyMySQL when using an "executemany"
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Mar 2015 23:05:22 +0000 (19:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Mar 2015 23:10:10 +0000 (19:10 -0400)
commit41ca5c8c6769ff1edbf9f22eff5f8c3650390830
tree573151c4ea4a6688707c8c67faa3f66336669764
parent89f884e8175dc1d69c9e00d4203a90a09e0fe7a9
- Fixed unicode support for PyMySQL when using an "executemany"
operation with unicode parameters.  SQLAlchemy now passes both
the statement as well as the bound parameters as unicode
objects, as PyMySQL generally uses string interpolation
internally to produce the final statement, and in the case of
executemany does the "encode" step only on the final statement.
fixes #3337

(cherry picked from commit dcf5408f7d315b4d9ddec5d0d696eb364d763099)

Conflicts:
lib/sqlalchemy/dialects/mysql/pymysql.py
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/mysql/pymysql.py
test/sql/test_types.py