cvs: php4 /pear DB.php
| From: | Frank M. Kromann | Date: | Mon, 29 Oct 2001 23:37:27 +0000 |
| Subject: | cvs: php4 /pear DB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1193@lists.php.net to get a copy of this message | ||
fmk Mon Oct 29 18:37:27 2001 EDT
Modified files:
/php4/pear DB.php
Log:
Adding nextResult() function allowing batches of sql statements to be
executed with one call to the query function.
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.75 php4/pear/DB.php:1.76
--- php4/pear/DB.php:1.75 Sat Oct 13 21:23:07 2001
+++ php4/pear/DB.php Mon Oct 29 18:37:27 2001
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: DB.php,v 1.75 2001/10/14 01:23:07 mfischer Exp $
+// $Id: DB.php,v 1.76 2001/10/29 23:37:27 fmk Exp $
//
// Database independent query interface.
//
@@ -686,6 +686,16 @@
function numRows()
{
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);
}
/**