Open BlinkyStitt opened 6 years ago
https://github.com/aio-libs/aiomysql/issues/224 looks like the same issue. The examples should probably make a note about autocommit.
Good point. Would you like to make PR?
Hey! I’ve been really busy, but now I have free time. Will write up a PR now.
On Feb 19, 2018, at 6:48 PM, Nikolay Novik notifications@github.com wrote:
Good point. Would you like to make PR?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aio-libs/aiomysql/issues/247#issuecomment-366852333, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmGXep4FpXshZgr8Op5BYHoloJxKCAyks5tWjJ5gaJpZM4R0-tm.
I was following https://github.com/aio-libs/aiomysql/blob/master/docs/sa.rst and I noticed that running the example multiple times did not work as expected.
The example:
Then I opened up adminer and added
6 def
I think the example is missing
conn.execute('commit')
.The example at https://github.com/aio-libs/aiomysql/blob/master/examples/example_simple_sa.py has the same issue. I removed the "drop" statement and it doesn't persist rows like I expect.