]> granicus.if.org Git - php/commitdiff
Adding nextResult() function allowing batches of sql statements to be
authorFrank M. Kromann <fmk@php.net>
Mon, 29 Oct 2001 23:37:27 +0000 (23:37 +0000)
committerFrank M. Kromann <fmk@php.net>
Mon, 29 Oct 2001 23:37:27 +0000 (23:37 +0000)
executed with one call to the query function.

pear/DB.php

index b70dcf17294eacd71103160d233d0ee520e2d780..48ed0e7a91e80d34382edeb92ae5ad106324491f 100644 (file)
@@ -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