pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:710:
Thread.Thread(pgsqlsess->processloop, this); return; }; PD("Connect error %s\n", describe_backtrace(err)); catch(destruct(pgsqlsess->waitforauthready)); destruct(this); } private string _sprintf(int type) { string res;
+
if (!this) // Not in destructed objects
+
return "";
switch (type) { case 'O': int fd = -1; if (socket) catch(fd = socket->query_fd()); res = predef::sprintf("conxion fd: %d input queue: %d/%d " "queued portals: %d output queue: %d/%d\n" "started: %d\n", fd, sizeof(i), i->_size_object(), qportals && qportals->size(), sizeof(this), _size_object(),
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:815:
final Thread.MutexKey _unnamedportalkey, _unnamedstatementkey; final array _params; final string _query; final string _preparedname; final mapping(string:mixed) _tprepared; private function(:void) gottimeout; private int timeout; protected string _sprintf(int type) { string res;
+
if (!this) // Not in destructed objects
+
return "";
switch (type) { case 'O': int fd = -1; if (c && c->socket) catch(fd = c->socket->query_fd()); res = sprintf( "sql_result state: %d numrows: %d eof: %d inflight: %d\n" "fd: %O portalname: %O coltypes: %d" " synctransact: %d laststatus: %s\n" "stash: %O\n"
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1815:
final string host; final int(0..65535) port; private string database, user, pass; private Crypto.Hash.SCRAM SASLcontext; final Thread.Condition waitforauthready; final MUTEX shortmux; final int readyforquerycount; private string _sprintf(int type) { string res;
+
if (!this) // Not in destructed objects
+
return "";
switch (type) { case 'O': res = sprintf(DRIVERNAME".proxy(%s@%s:%d/%s,%d,%d)", user, host, port, database, c && c->socket && c->socket->query_fd(), backendpid); break; } return res; }