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:1342:
array(mixed) args) { int|array datarow; for (;;) { array cid = callout(gottimeout, timeout); PT(datarow = datarows->read()); local_backend->remove_call_out(cid); if (!arrayp(datarow)) break; callout(callback, 0, this, datarow, @args); }
-
trydelayederror();
+
eoffound = 1; callout(callback, 0, this, 0, @args); } //! Sets up a callback for every row returned from the database. //! First argument passed is the resultobject itself, second argument //! is the result row (zero on EOF). //! //! @seealso //! @[fetch_row()]
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1372:
array(mixed) args) { array(array|int) datarow; for (;;) { array cid = callout(gottimeout, timeout); PT(datarow = datarows->read_array()); local_backend->remove_call_out(cid); if (!datarow || !arrayp(datarow[-1])) break; callout(callback, 0, this, datarow, @args); }
-
trydelayederror();
+
eoffound = 1; if (sizeof(datarow)>1) callout(callback, 0, this, datarow = datarow[..<1], @args); callout(callback, 0, this, 0, @args); } //! Sets up a callback for sets of rows returned from the database. //! First argument passed is the resultobject itself, second argument //! is the array of result rows (zero on EOF). //!