]> granicus.if.org Git - php/commit
Fix #41997: SP call yields additional empty result set
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 6 Aug 2019 12:30:41 +0000 (14:30 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 3 Sep 2019 11:29:30 +0000 (13:29 +0200)
commit41a4379cb45419a376043ca5f8c5a2bca82cea7c
tree38229682092ef6422dbcbfb28838c7ffc7d56bf4
parent9c3b7ccda5e3737c779e019eb1468213edaa2e39
Fix #41997: SP call yields additional empty result set

When stored procedures are called, the "final result set is a status
result that includes no result set".  Calling `::nextRowset()` on the
actual last result set should return FALSE, since there is actually no
further result set to be processed.
NEWS
ext/pdo_mysql/mysql_statement.c
ext/pdo_mysql/tests/bug_39858.phpt
ext/pdo_mysql/tests/bug_41997.phpt
ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt