Fixes #222
Merge pull request #226 from PyMySQL/fix/222

Fixes #222