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:1175:
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);
+
catch { // Cater for destruct races
_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 destruct(waitforauthready);
-
+
};
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.