]> granicus.if.org Git - php/commit
Fixed bug #79872 by improving error message
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Dec 2020 10:46:29 +0000 (11:46 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Dec 2020 10:46:29 +0000 (11:46 +0100)
commit288581fadef58363dac4fc72ded0fae830bf603c
tree22652c599af378afafcac907d4b140a9faa92cbf
parentd63aedd173fbb8b3399cff4b991f8a343dd0f331
Fixed bug #79872 by improving error message

The actual behavior here is correct, but the previous error
message was misleading, as neither fetchAll() nor buffered queries
would help in this situation. Instead it is necessary to consume
all rowsets, which can be done by either unsetting the statement
or calling closeCursor().
NEWS
ext/pdo_mysql/mysql_driver.c
ext/pdo_mysql/tests/bug79872.phpt [new file with mode: 0644]