From e9c09b86e10f22c4274df5b645853de9d7b7d5d4 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Mon, 29 Oct 2001 23:37:27 +0000 Subject: [PATCH] Adding nextResult() function allowing batches of sql statements to be executed with one call to the query function. --- pear/DB.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.40.0