Help Center/
GaussDB/
Developer Guide(Centralized_2.x)/
API Reference/
Psycopg/
connection.rollback()
Updated on 2023-10-23 GMT+08:00
connection.rollback()
Function
This method rolls back the current pending transaction.
If you close the connection using close() but do not commit the change using commit(), an implicit rollback will be performed.
Prototype
connection.rollback()
Parameter
None
Return Value
None
Examples
For details, see Example: Common Operations.
Parent topic: Psycopg
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot