petehunt/PyMySQL — pull request #85 by j0hnsmith (2011-10-24 14:44:46+00:00)
Title: fix int args being turned into strings

args = {'foo': 1}
query = 'SELECT foo FROM bar WHERE foo=%(foo)s'
cursor.execute(query, args)

`TypeError: %d format: a number is required, not str`

Escaped `int` args get turned into `str` and cause the error, the attached commit fixes this.