From e19453ea2b88724281d6c2d455e98f79bb7bc3f5 Mon Sep 17 00:00:00 2001 From: slvrtrn Date: Tue, 22 Oct 2024 14:41:52 +0200 Subject: [PATCH] Add more SQLColAttribute logs --- driver/api/odbc.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/driver/api/odbc.cpp b/driver/api/odbc.cpp index cf3c4ae4..8f9612af 100755 --- a/driver/api/odbc.cpp +++ b/driver/api/odbc.cpp @@ -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(out_num_value) = VALUE; \ +#define CASE_FIELD_NUM(NAME, VALUE) \ + case NAME: \ + if (out_num_value) { \ + LOG(__FUNCTION__ << "(out_num_value=" << VALUE << ")"); \ + *reinterpret_cast(out_num_value) = VALUE; \ + } \ return SQL_SUCCESS; #define CASE_FIELD_STR(NAME, VALUE) \