I\'m using pymysql.cursors
and a simplified code example that loads a row from a table and prints it every second is:
#!/usr/bin/env python3
imp
I do not understand why this is necessary, but you can fix it by either
Adding autocommit=True
into the connect()
parameters.
Calling conn.commit()
after the cursor.execute()
command.
Seems it starts a transaction at a snapshot or something by default. I (nervously!) submitted an issue on the pymysql repo, as I'd not heard anything back here. This was closed immediately with the explanation
It's repeatable read
If anyone knows something better than using autocommit
let me know.