Skip to content

Commit

Permalink
Add more SQLColAttribute logs
Browse files Browse the repository at this point in the history
  • Loading branch information
slvrtrn committed Oct 22, 2024
1 parent df8dd76 commit e19453e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions driver/api/odbc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,12 @@ SQLRETURN SQL_API EXPORTED_FUNCTION_MAYBE_W(SQLColAttribute)(

switch (field_identifier) {

#define CASE_FIELD_NUM(NAME, VALUE) \
case NAME: \
if (out_num_value) \
*reinterpret_cast<SQLLEN *>(out_num_value) = VALUE; \
#define CASE_FIELD_NUM(NAME, VALUE) \
case NAME: \
if (out_num_value) { \
LOG(__FUNCTION__ << "(out_num_value=" << VALUE << ")"); \
*reinterpret_cast<SQLLEN *>(out_num_value) = VALUE; \
} \
return SQL_SUCCESS;

#define CASE_FIELD_STR(NAME, VALUE) \
Expand Down

0 comments on commit e19453e

Please sign in to comment.