Closed matthew-wozniczka closed 6 years ago
Ah, I didn't notice it was being specific about the ARD in
if the SQL_DESC_DATA_PTR field in the ARD is set by a call to SQLSetDescField or SQLSetDescRec to a null pointer
I guess it's not inconsistent (but pretty confusing). Is there a single place in the spec that clearly defines when a column/parameter is considered 'bound'?
This is a problem already in the current ODBC 3.8 spec.
On the page for SQLBindParameter, it states (for
ParameterValuePtr
):This implies that doing so leaves that parameter successfully bound. On the other hand, on the page for SQLSetDescField, it states (again for
ParameterValuePtr
):The description under
SQLSetDescField
should be updated....Actually, while writing this up, I noticed it doesn't mention
SQLBindParameter
in the latter passage, but I think it does state thatSQLBindParameter
is equivalent to a certain sequence of calls toSQLSetDescField
, so I think it's still inconsistent.