pike.git / lib / modules / Sql.pmod / pgsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:570:    }    Thread.MutexKey lock = resyncmux->lock();    proxy.readyforquery_cb = resync_cb;    proxy.sendsync();    resynced.wait(lock); // Wait for the db to finish    }    return;    };    PD("%O\n", err);    } -  if (sizeof(proxy.lastmessage)) +  if (proxy && proxy.lastmessage && sizeof(proxy.lastmessage))    ERROR(proxy.a2nls(proxy.lastmessage));   }      //! Due to restrictions of the Postgres frontend-backend protocol, you always   //! already have to be connected to a database.   //! To connect to a different database you have to select the right   //! database while connecting instead. This function is a no-op when   //! specifying the same database, and throws an error otherwise.   //!   //! @seealso