Skip to content

Fix #81252: PDO_ODBC doesn't account for SQL_NO_TOTAL #7295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 21, 2021

If P->len is negative (not only when it is SQL_NULL_DATA), we must
not go on, because the following code can't deal with that. This means
that the output parameter will be set to NULL without any indication
what went wrong, but it's still better than crashing.

If `P->len` is negative (not only when it is `SQL_NULL_DATA`), we must
not go on, because the following code can't deal with that.  This means
that the output parameter will be set to `NULL` without any indication
what went wrong, but it's still better than crashing.
@cmb69 cmb69 added the Bug label Jul 21, 2021
@nikic
Copy link
Member

nikic commented Jul 22, 2021

Do I understand correctly that this doesn't really fix the issue (SQL_NO_TOTAL still not supported), just makes sure it doesn't outright crash?

@cmb69
Copy link
Member Author

cmb69 commented Jul 22, 2021

Do I understand correctly that this doesn't really fix the issue (SQL_NO_TOTAL still not supported), just makes sure it doesn't outright crash?

Yes, exactly. See also https://bugs.php.net/bug.php?id=81252#1626873903.

@cmb69 cmb69 closed this in 98049e8 Jul 28, 2021
@cmb69 cmb69 deleted the cmb/81252 branch July 28, 2021 09:03
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.

2 participants