Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
If application only wants to know the length of WCHAR data in the column(and not the data itself), the driver returns 0
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Summary | Lenght is not returned for SQL_C_WCHAR on SQLFetch if data buffer is NULL | Length is not returned for SQL_C_WCHAR on SQLFetch if data buffer is NULL |
Component/s | General [ 14302 ] | |
Fix Version/s | 3.1.16 [ 27100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
The fix only has been pushed(the testcase for
ODBC-359covers this case)If application wanted to know length of wchar data(to allocate the buffer
and later fetch it) - i.e. it SQLBindCol only length pointer, and no
data pointer, on SQLFetch connector would put 0 in the length buffer.
Usually that is done with SQLGetData, but this way is also legitimate.