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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:20:   #include "pgsql.h"      #define PORTALINIT 0 // Portal states   #define PARSING 1   #define BOUND 2   #define COMMITTED 3   #define COPYINPROGRESS 4   #define CLOSING 5   #define CLOSED 6   #define PURGED 7 + // If this is extended, change the type of _state      #define NOERROR 0 // Error states networkparser   #define PROTOCOLERROR 1   #define PROTOCOLUNSUPPORTED 2      #define LOSTERROR "Database connection lost"      //! The instance of the pgsql dedicated backend.   final Pike.Backend local_backend = Pike.SmallBackend();   
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:313:   #endif    socket;    private int towrite;    final multiset(sql_result) runningportals = (<>);       final Thread.Mutex nostash;    final Thread.MutexKey started;    final Thread.Queue stashqueue;    final Thread.Condition stashavail;    final Stdio.Buffer stash; -  final int(KEEP..SYNCSEND) stashflushmode; +  /* FIXME actually: int(KEEP..SYNCSEND) stashflushmode +  * but the PikeParser does not approve, and refdoc +  * generation aborts +  */ +  final int(0..4) stashflushmode;    final Thread.ResourceCount stashcount;    final int synctransact;   #ifdef PG_DEBUGRACE    final mixed nostrack;   #endif   #ifdef PG_DEBUG    final int queueoutidx;    final int queueinidx = -1;   #endif   
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:617:   //! @[Sql.sql_result], @[Sql.pgsql], @[Sql.Sql], @[Sql.pgsql()->big_query()]   class sql_result {       inherit __builtin.Sql.Result;       private proxy pgsqlsess;    private int(0..1) eoffound;    private conxion c;    private conxiin cr;    final mixed delayederror; -  final int(PORTALINIT..PURGED) _state; +  final int(0..7) _state; // FIXME actually: int(PORTALINIT..PURGED)    final int _fetchlimit;    private int(0..1) alltext;    final int(0..1) _forcetext;    private int syncparse;    private int transtype;       final string _portalname;       private int rowsreceived;    private int inflight;