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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:173:   }      #if constant(SSL.sslfile)   class PGconnS {    inherit SSL.sslfile:std;    inherit PGassist:pg;       Stdio.File rawstream;       inline int(-1..1) peek(int timeout) { -  return rawstream.peek(timeout); -  } +  return rawstream.peek(timeout); // This is a kludge +  } // Actually SSL.sslfile should provide a peek() method       inline string read(int len,void|int(0..1) not_all) {    return std::read(len,not_all);    }       inline int write(string|array(string) data) {    return std::write(data);    }       void create(Stdio.File stream, SSL.context ctx) {
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:230:   int _buffer;   #endif      private object fetchmutex;;      protected string _sprintf(int type, void|mapping flags) {    string res=UNDEFINED;    switch(type) {    case 'O':    res=sprintf("pgsql_result numrows: %d eof: %d querylock: %d" -  " inflight: %d portalname: %O\n" +  " inflight: %d\nportalname: %O datarows: %d\n"    "query: %O\n" -  "laststatus: %s\n" -  "%O\n" -  "%O\n", -  numrows,eoffound,!!_qmtxkey,_inflight,_portalname, +  "laststatus: %s\n", +  numrows,eoffound,!!_qmtxkey,_inflight, +  _portalname,sizeof(_datarowdesc),    query, -  _statuscmdcomplete||"", -  _datarowdesc, -  _pgsqlsess); +  _statuscmdcomplete||"");    break;    }    return res;   }      void create(object pgsqlsess,mapping(string:mixed) _tprepared,    string _query,int fetchlimit,int portalbuffersize) {    _pgsqlsess = pgsqlsess;    tprepared = _tprepared; query = _query;    _datarows = ({ }); numrows = UNDEFINED;