Skip to content
Snippets Groups Projects
Commit 483bfef1 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Verify objects are still live at these points.

parent 5f5e82fc
No related branches found
No related tags found
No related merge requests found
...@@ -493,9 +493,11 @@ private void waitauthready() { ...@@ -493,9 +493,11 @@ private void waitauthready() {
} }
protected void destroy() { protected void destroy() {
if (proxy) {
proxy.unnamedstatement = 0; // Forget about pending statements proxy.unnamedstatement = 0; // Forget about pending statements
destruct(proxy); destruct(proxy);
} }
}
//! For PostgreSQL this function performs the same function as @[resync()]. //! For PostgreSQL this function performs the same function as @[resync()].
//! //!
......
...@@ -712,6 +712,7 @@ outer: ...@@ -712,6 +712,7 @@ outer:
}; };
PD("Connect error %s\n", describe_backtrace(err)); PD("Connect error %s\n", describe_backtrace(err));
catch(destruct(pgsqlsess->waitforauthready)); catch(destruct(pgsqlsess->waitforauthready));
if (this)
destruct(this); destruct(this);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment