MySQL Forums
Forum List  »  Connector/Python

Re: Cannot commit a read statement
Posted by: Oscar Pacheco
Date: July 27, 2022 07:54AM

Hello Xiang,

Yes, the behavior is expected. Here is a quick description of the commit() method:

As you can see, commit() does not return any content and it is used to commit the current transaction. You can use the cur.fetchall() command to load the results.


Options: ReplyQuote

Written By
Re: Cannot commit a read statement
July 27, 2022 07:54AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.