From: Frank M. Kromann Date: Mon, 29 Oct 2001 23:37:27 +0000 (+0000) Subject: Adding nextResult() function allowing batches of sql statements to be X-Git-Tag: ChangeLog~481 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9c09b86e10f22c4274df5b645853de9d7b7d5d4;p=php Adding nextResult() function allowing batches of sql statements to be executed with one call to the query function. --- diff --git a/pear/DB.php b/pear/DB.php index b70dcf1729..48ed0e7a91 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -688,6 +688,16 @@ class DB_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. * @return int error code