Open ant-zuev opened 3 weeks ago
What do you mean you cannot delete the Connection object? It's in fact deleted just fine, as the stack trace confirms. The exception is reported for __del__
finalizer, which was called when connection went out of scope (so it never reached the con.close()
otherwise it would be reported from there). Also note that this exception is ignored, just reported as it doesn't does not mean anything.
When a connection is lost, for example as a result of a server shutdown, after several attempts to execute statements, we cannot delete the Connection object. Reproduced with an uncommitted cursor transaction.
The object is not deleted and on exit we get an exception to delete the cursor and statement: