Skip to content

Commit 8a2127c

Browse files
committed
Silence warning on stored procedure call
1 parent c00c501 commit 8a2127c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MysqliDb.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,9 @@ protected function _dynamicBindResults(mysqli_stmt $stmt)
720720
$this->count++;
721721
array_push($results, $x);
722722
}
723+
// stored procedures sometimes can return more then 1 resultset
724+
if ($this->_mysqli->more_results())
725+
$this->_mysqli->next_result();
723726

724727
if ($this->fetchTotalCount === true) {
725728
$this->fetchTotalCount = false;

0 commit comments

Comments
 (0)