mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Adding nextResult() function allowing batches of sql statements to be
executed with one call to the query function.
This commit is contained in:
parent
8b0ac98fe4
commit
e9c09b86e1
10
pear/DB.php
10
pear/DB.php
@ -688,6 +688,16 @@ class DB_result
|
|||||||
return $this->dbh->numRows($this->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.
|
* Frees the resources allocated for this result set.
|
||||||
* @return int error code
|
* @return int error code
|
||||||
|
Loading…
Reference in New Issue
Block a user