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.
- SQLColAttribute
- SQLGetInfo
- SQLBindCol
- SQLBindParameter
- SQLGetData
- SQLGetDiagField