summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-10-29 23:37:27 +0000
committerFrank M. Kromann <fmk@php.net>2001-10-29 23:37:27 +0000
commite9c09b86e10f22c4274df5b645853de9d7b7d5d4 (patch)
treecdbe954fbbf071fa18227f9d8b8ea61b891700b1
parent8b0ac98fe45ecdb01a58cee8c16b9eb8882d5d32 (diff)
downloadphp-git-e9c09b86e10f22c4274df5b645853de9d7b7d5d4.tar.gz
Adding nextResult() function allowing batches of sql statements to be
executed with one call to the query function.
-rw-r--r--pear/DB.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/pear/DB.php b/pear/DB.php
index b70dcf1729..48ed0e7a91 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -689,6 +689,16 @@ class DB_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
*/