MCPcopy Create free account
hub / github.com/apache/arrow / SQLGetConnectAttr

Function SQLGetConnectAttr

cpp/src/arrow/flight/sql/odbc/odbc_api.cc:785–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785SQLRETURN SQLGetConnectAttr(SQLHDBC conn, SQLINTEGER attribute, SQLPOINTER value_ptr,
786 SQLINTEGER buffer_length, SQLINTEGER* string_length_ptr) {
787 ARROW_LOG(DEBUG) << "SQLGetConnectAttrW called with conn: " << conn
788 << ", attribute: " << attribute << ", value_ptr: " << value_ptr
789 << ", buffer_length: " << buffer_length << ", string_length_ptr: "
790 << static_cast<const void*>(string_length_ptr);
791 using ODBC::ODBCConnection;
792
793 return ODBCConnection::ExecuteWithDiagnostics(conn, SQL_ERROR, [=]() {
794 const bool is_unicode = true;
795 ODBCConnection* connection = reinterpret_cast<ODBCConnection*>(conn);
796 return connection->GetConnectAttr(attribute, value_ptr, buffer_length,
797 string_length_ptr, is_unicode);
798 });
799}
800
801SQLRETURN SQLSetConnectAttr(SQLHDBC conn, SQLINTEGER attr, SQLPOINTER value_ptr,
802 SQLINTEGER value_len) {

Callers 2

TYPED_TESTFunction · 0.50
TYPED_TESTFunction · 0.50

Calls 1

GetConnectAttrMethod · 0.80

Tested by 2

TYPED_TESTFunction · 0.40
TYPED_TESTFunction · 0.40