[C++][Arrow Flight SQL ODBC] Handle case where offset and buffer length are not equal
Open
Component: C++
Component: FlightRPC
Type: enhancement
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the enhancement requested
In SQLFetch, handle case where `SQL_DESC_BIND_OFFSET_PTR` (offset) and `SQL_DESC_OCTET_LENGTH` (buffer length in SQLBindCol) are not equal. See https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlfetch-function?view=sql-server-ver17#other-descriptor-fields for fields used by SQLFetch.
https://github.com/apache/arrow/blob/5f616db1491478dc85cc62eb0771730224479750/cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc#L319-L320
Parent issue: https://github.com/apache/arrow/issues/30622
### Component(s)
FlightRPC, C++
Contributor guide
Assessment
This issue has not been assessed yet.