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:223:
//! @[Sql.sql_result], @[Sql.pgsql], @[Sql.Sql], @[Sql.pgsql()->big_query()] class pgsql_result { object _pgsqlsess; private int numrows; private int eoffound; private mixed delayederror; private int copyinprogress; int _fetchlimit; int _alltext;
+
int _forcetext;
#ifdef NO_LOCKING int _qmtxkey; #else Thread.MutexKey _qmtxkey; #endif string _portalname; int _bytesreceived;
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:264:
" inflight: %d\nportalname: %O datarows: %d laststatus: %s\n", numrows,eoffound,!!_qmtxkey,_inflight, _portalname,sizeof(_datarowdesc), _statuscmdcomplete||""); break; } return res; } void create(object pgsqlsess,string query,int fetchlimit,
-
int portalbuffersize,int alltyped,array params)
+
int portalbuffersize,int alltyped,array params
,int forcetext
)
{ _pgsqlsess = pgsqlsess; _query = query; _datarows = ({ }); numrows = UNDEFINED; fetchmutex = Thread.Mutex();
-
_fetchlimit=fetchlimit;
+
_fetchlimit=
forcetext?0:
fetchlimit;
_portalbuffersize=portalbuffersize; _alltext = !alltyped; _params = params;
-
+
_forcetext = forcetext;
steallock(); } //! Returns the command-complete status for this query. //! //! @seealso //! @[affected_rows()] //! //! @note //! This function is PostgreSQL-specific, and thus it is not available