Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Mar 26, 2021

The StrLen_or_IndPtr parameter usually may be SQL_NO_TOTAL; we need
to cater to that possibility to avoid working with negative string
lengths and other issues. A noteable exemption are calls to
SQLGetData() which return SQL_SUCCESS; in that case SQL_NO_TOTAL
can not occur.


Marked as draft, because I'm hoping to get at least a test case for the behavior from the bug reporter.

The `StrLen_or_IndPtr` parameter usually may be `SQL_NO_TOTAL`; we need
to cater to that possibility to avoid working with negative string
lengths and other issues.  A noteable exemption are calls to
`SQLGetData()` which return `SQL_SUCCESS`; in that case `SQL_NO_TOTAL`
can not occur.
@cmb69 cmb69 added the Bug label Mar 26, 2021
@cmb69
Copy link
Member Author

cmb69 commented Apr 13, 2021

Would be nice to have some tests for this behavior, but I don't have a driver at hand which exhibits the reported behavior, and likely it couldn't be tested in CI anyway, so I'm opening this for review.

@cmb69 cmb69 marked this pull request as ready for review April 13, 2021 16:28
@cmb69
Copy link
Member Author

cmb69 commented Apr 27, 2021

Going to re-open right away to trigger CI (old CI results are gone).

@cmb69 cmb69 closed this Apr 27, 2021
@cmb69 cmb69 reopened this Apr 27, 2021
@cmb69
Copy link
Member Author

cmb69 commented Apr 27, 2021

Okay, the new CI jobs have been green, and I don't think there'll be somebody coming up with a regression test, so I'm going to apply this PR ASAP.

@cmb69 cmb69 closed this in 7f83976 Apr 27, 2021
@cmb69 cmb69 deleted the cmb/80460 branch April 27, 2021 15:14
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.

1 participant