pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql.pike:1172:
if(!or._delayederror) or._delayederror=err; if(objectp(portal)) portal->_releasesession(); portal=0; if(!waitforauthready) continue; // Only continue if authentication did not fail } break; }
+
if(!this) { // Already destructed
+
ci->close(); // So close descriptors only
+
return;
+
}
PD("Closing database processloop %O\n",err);
-
if(this)
+
_delayederror=err; for(;objectp(portal);portal=qportals->read()) if(objectp(portal)) { #ifdef PG_DEBUG showportal(0); #endif portal->_purgeportal(); } if(!ci->close() && !terminating && _options.reconnect) _connectfail();
-
else
if(this)
+
else
destruct(waitforauthready);
-
if(
this &&
err && !stringp(err))
+
if(err && !stringp(err))
throw(err); } //! Closes the connection to the database, any running queries are //! terminated instantly. //! //! @note //! This function is PostgreSQL-specific, and thus it is not available //! through the generic SQL-interface. /*semi*/final void close() {