Package Details: python-pymysql 0.7.7-1

Git Clone URL: https://aur.archlinux.org/python-pymysql.git (read-only)
Package Base: python-pymysql
Description: Pure Python MySQL Client
Upstream URL: http://www.pymysql.org/
Licenses: BSD
Submitter: mtorromeo
Maintainer: mtorromeo
Last Packager: mtorromeo
Votes: 19
Popularity: 0.843853
First Submitted: 2013-10-28 14:46
Last Updated: 2016-08-30 08:25

Dependencies (2)

Required by (2)

Sources (1)

Latest Comments

johni commented on 2013-04-25 19:17

The following patch fixes an issue using pymysql with python-sqlalchemy:

[code]
--- PyMySQL-0.5/pymysql/cursors.py.orig 2013-04-25 13:44:31.759325245 -0500
+++ PyMySQL-0.5/pymysql/cursors.py 2013-04-25 13:47:09.912146043 -0500
@@ -102,7 +102,7 @@
#Worst case it will throw a Value error
escaped_args = conn.escape(args)

- query = query % escaped_args
+ query = query.decode(charset) % escaped_args

if isinstance(query, unicode):
query = query.encode(charset)
[/code]

You might consider adding it to your PKGBUILD. Info on the patch here:
[link]https://github.com/petehunt/PyMySQL/issues/83[/link]