I would like to verify for myself how this MySQL string is translated by the cursor:
cursor.execute("SELECT * from elements where id = %s", (element_id))
Yes. As Ferdinand has pointed out, there is a MySQLdb/cursors.py
containing an execute()
, which in turn calls _query()
.
This puts the executed query into self._executed
.
So you can get it from cursor._executed
.