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:1312:
//! session variables to their default values. //! //! @seealso //! @[cancelquery()], @[reload()] //! //! @note //! This function is PostgreSQL-specific, and thus it is not available //! through the generic SQL-interface. void resync() { mixed err;
-
if(!is_open()&&!reconnect())
+
if(!is_open()&&!reconnect()
&&sizeof(lastmessage
)
)
ERROR(a2nls(lastmessage)); err = catch { PD("Portalsinflight: %d\n",_portalsinflight); if(!waitforauthready) { readyforquery_cb=resync_cb; sendsync(); } return; }; PD("%O\n",err);
-
if(!reconnect())
+
if(!reconnect()
&&sizeof(lastmessage
)
)
ERROR(a2nls(lastmessage)); } //! This function allows you to connect to a database. Due to //! restrictions of the Postgres frontend-backend protocol, you always //! have to be connected to a database, so in fact this function just //! allows you to connect to a different database on the same server. //! //! @note //! This function @b{can@} raise exceptions if something goes wrong