Answer the question
In order to leave comments, you need to log in
How to get the text of the last query to the database?
I am using psocopg2, python3.5 module.
Constantly there are errors in receiving requests to the database, but I cannot understand where they come from.
How can I get the text of the last database query that caused the query to fail before I roll back the database changes by 1 query?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question