Adding nextResult() function allowing batches of sql statements to be

executed with one call to the query function.
This commit is contained in:
Frank M. Kromann 2001-10-29 23:37:27 +00:00
parent 8b0ac98fe4
commit e9c09b86e1

View File

@ -688,6 +688,16 @@ class DB_result
return $this->dbh->numRows($this->result); return $this->dbh->numRows($this->result);
} }
/**
* Get the next result if a batch of queries was executed.
*
* @return bool true if a new result is available or false if not.
*/
function nextResult()
{
return $this->dbh->nextResult($this->result);
}
/** /**
* Frees the resources allocated for this result set. * Frees the resources allocated for this result set.
* @return int error code * @return int error code