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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:84:   private array connparmcache;   private int reconnected;   private int lastping = time(1);      protected string _sprintf(int type) {    string res;    switch(type) {    case 'O':    res = sprintf(DRIVERNAME"(%s@%s:%d/%s,%d,%d)",    proxy.user, proxy.host, proxy.port, proxy.database, -  proxy.c?->socket && proxy.c->socket->query_fd(), proxy.backendpid); +  proxy.c->?socket && proxy.c->socket->query_fd(), proxy.backendpid);    break;    }    return res;   }      //! With no arguments, this function initialises a connection to the   //! PostgreSQL backend. Since PostgreSQL requires a database to be   //! selected, it will try to connect to the default database. The   //! connection may fail however, for a variety of reasons; in this case   //! the most likely reason is because you don't have sufficient privileges
pike.git/lib/modules/Sql.pmod/pgsql.pike:462:   private string glob2reg(string glob) {    if (!glob || !sizeof(glob))    return "%";    return replace(glob, ({"*", "?", "\\", "%", "_"}),    ({"%", "_", "\\\\", "\\%", "\\_"}));   }      private void waitauthready() {    if (proxy.waitforauthready) {    PD("%d Wait for auth ready %O\n", -  proxy.c?->socket && proxy.c->socket->query_fd(), backtrace()[-2]); +  proxy.c->?socket && proxy.c->socket->query_fd(), backtrace()[-2]);    Thread.MutexKey lock = proxy.shortmux->lock();    catch(PT(proxy.waitforauthready->wait(lock)));    PD("%d Wait for auth ready released.\n", -  proxy.c?->socket && proxy.c->socket->query_fd()); +  proxy.c->?socket && proxy.c->socket->query_fd());    }   }      //! Closes the connection to the database, any running queries are   //! terminated instantly.   //!   //! @note   //! This function is PostgreSQL-specific.   /*semi*/final void close() {    proxy.close();