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

Function SQLGetConnectAttr

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

Source from the content-addressed store, hash-verified

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