diff options
author | Frank M. Kromann <fmk@php.net> | 2001-10-29 23:37:27 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-10-29 23:37:27 +0000 |
commit | e9c09b86e10f22c4274df5b645853de9d7b7d5d4 (patch) | |
tree | cdbe954fbbf071fa18227f9d8b8ea61b891700b1 | |
parent | 8b0ac98fe45ecdb01a58cee8c16b9eb8882d5d32 (diff) | |
download | php-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.php | 10 |
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 */ |