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:1294:
//! //! When using COPY FROM STDOUT, this method returns one row at a time //! as a single string containing the entire row. //! //! @seealso //! @[eof()], @[fetch_row()] /*semi*/final array(array(mixed)) fetch_row_array() { if (eoffound) return 0; array(array|int) datarow = datarows->try_read_array();
-
if (!datarow) {
+
if (!
sizeof(
datarow)
)
{
array cid = callout(gottimeout, timeout); PT(datarow = datarows->read_array()); local_backend->remove_call_out(cid); } if (arrayp(datarow[-1])) return datarow; trydelayederror(); eoffound = 1; datarows->write(1); // Signal EOF for other threads return (datarow = datarow[..<1]);