@@ -106,29 +106,10 @@ SQLRETURN SQL_API SQLSetEnvAttr(SQLHENV env, SQLINTEGER attr, SQLPOINTER value_p
106106SQLRETURN SQL_API SQLGetConnectAttr (SQLHDBC conn, SQLINTEGER attribute,
107107 SQLPOINTER value_ptr, SQLINTEGER buffer_length,
108108 SQLINTEGER* string_length_ptr) {
109- ARROW_LOG (DEBUG)
110- << " -AL- Alina test msg in entry_points.cc: SQLGetConnectAttr called with conn: "
111- << conn; // -AL- refactor later.
112109 return arrow::flight::sql::odbc::SQLGetConnectAttr (conn, attribute, value_ptr,
113110 buffer_length, string_length_ptr);
114111}
115112
116- // -AL- not sure if needed on macOS, check again after implementing SQLError.
117- SQLRETURN SQL_API SQLGetConnectOption (SQLHDBC conn, SQLUSMALLINT attribute,
118- SQLPOINTER value_ptr) {
119- ARROW_LOG (DEBUG) << " SQLGetConnectOption called with conn: " << conn
120- << " , attribute: " << attribute
121- << " , value_ptr: " << static_cast <const void *>(value_ptr);
122-
123- // cast `SQLUSMALLINT` attribute to a `SQLINTEGER` type which works for
124- // SQLGetConnectAttr buffer_length, string_length_ptr should be set to 0
125- SQLINTEGER buffer_length = 0 ;
126- SQLINTEGER string_length = 0 ;
127- SQLINTEGER attribute_int = static_cast <SQLINTEGER>(attribute);
128- return arrow::flight::sql::odbc::SQLGetConnectAttr (conn, attribute_int, value_ptr,
129- buffer_length, &string_length);
130- }
131-
132113SQLRETURN SQL_API SQLSetConnectAttr (SQLHDBC conn, SQLINTEGER attr, SQLPOINTER value,
133114 SQLINTEGER value_len) {
134115 return arrow::flight::sql::odbc::SQLSetConnectAttr (conn, attr, value, value_len);
0 commit comments