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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:717:       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()); +  if (!this) // Not in destructed objects +  return "";    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(),    !!started);    break;    }    return res;    }
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:824:       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()); +  if (!this) // Not in destructed objects +  return "";    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"   #if PG_DEBUGHISTORY > 0    "history: %O\n"   #endif    "query: %O\n%s\n",    _state, index, eoffound, inflight,