Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Aug 6, 2019

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.

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.
@cmb69
Copy link
Member Author

cmb69 commented Aug 26, 2019

@andreyhristov, @johannes, could you please review?

@andreyhristov
Copy link

If I recally correctly, it was up to the extension (not mysqlnd) to read the last result set from a SP call and decide what to do. The idea is that a SP can create more info, not just the status. Depending on the level at which the API (mysqli or PDO) works the behavior could be different, thus mysqlnd is agnostic.

@cmb69
Copy link
Member Author

cmb69 commented Aug 26, 2019

Thanks for the explanation. This PR is for pdo_mysql, though (not mysqlnd). :)

@andreyhristov
Copy link

andreyhristov commented Aug 26, 2019

I was looking at the comments in the bug tracker and there there is a comment:
"This is not properly handled by mysqlnd, though (not sure about
libmysqlclient yet), which simply proceeds to this status result
when ::nextRowset() is called, but then errors because the actual
result set is missing."

BTW, my opinion is more or less that libmysqlclient support should be dropped. Yes, it is the reference library but if you look how many tests fail with it and don't with mysqlnd. I would not put a code in production that uses mysqli/pdo on top of libmysqlclient.

@cmb69
Copy link
Member Author

cmb69 commented Aug 26, 2019

@andreyhristov, that was a comment while working on that bug; the following comment clarified that libmysql-client works the same, what led to this PR targeting pdo_mysql.

@andreyhristov
Copy link

ok :)

@cmb69
Copy link
Member Author

cmb69 commented Sep 3, 2019

BTW, my opinion is more or less that libmysqlclient support should be dropped.

See https://externals.io/message/106086.

@cmb69
Copy link
Member Author

cmb69 commented Sep 3, 2019

Applied as 41a4379. Thanks.

@cmb69 cmb69 closed this Sep 3, 2019
@cmb69 cmb69 deleted the fix-41997 branch September 3, 2019 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants