4

Does PyMySQL support prepared statements? I am trying to connect to MySQL from a python module.

I have checked documentation at http://pymysql.readthedocs.io and didn't find anything useful.

No luck on skimming the source code either.

Brindha
  • 349
  • 1
  • 5
  • 16

2 Answers2

3

PyMySQL does not support prepared statements yet. See PyMySQL issue 202

Chirag Maliwal
  • 442
  • 11
  • 25
Daniel Milde
  • 1,096
  • 1
  • 12
  • 15
0

No support for Prepared Statements will ever come to PyMySQL, I guess. Use Oracle's MySQL Connector for this. https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursorprepared.html

akamac
  • 31
  • 3