Skip to content
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

Create tests to ensure truncated buffer work correctly. #185

Open
birschick-bq opened this issue Jan 31, 2023 · 0 comments
Open

Create tests to ensure truncated buffer work correctly. #185

birschick-bq opened this issue Jan 31, 2023 · 0 comments

Comments

@birschick-bq
Copy link
Contributor

Itemized ODBC Interface for handling of Character/Byte Lengths in parameters - Amazon - Confluence (atlassian.net)

Create tests for each of these API to test if a smaller buffer than required behaves correctly.

  • Return buffer size is smaller than necessary
  • Reports a return code of SUCCESS_WITH_INFO
  • Resulting size is the number of characters (or bytes) returned not including the null character.
  • [Optional] String representation of truncated value is correct.
  1. SQLColAttribute
  2. SQLGetInfo
  3. SQLBindCol
  4. SQLBindParameter
  5. SQLGetData
  6. SQLGetDiagField
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant