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

Function SQLSetConnectAttr

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

Source from the content-addressed store, hash-verified

798}
799
800SQLRETURN SQLSetConnectAttr(SQLHDBC conn, SQLINTEGER attr, SQLPOINTER value_ptr,
801 SQLINTEGER value_len) {
802 ARROW_LOG(DEBUG) << "SQLSetConnectAttrW called with conn: " << conn
803 << ", attr: " << attr << ", value_ptr: " << value_ptr
804 << ", value_len: " << value_len;
805
806 using ODBC::ODBCConnection;
807
808 return ODBCConnection::ExecuteWithDiagnostics(conn, SQL_ERROR, [=]() {
809 const bool is_unicode = true;
810 ODBCConnection* connection = reinterpret_cast<ODBCConnection*>(conn);
811 connection->SetConnectAttr(attr, value_ptr, value_len, is_unicode);
812 return SQL_SUCCESS;
813 });
814}
815
816// Load properties from the given DSN. The properties loaded do _not_ overwrite existing
817// entries in the properties.

Callers 1

TYPED_TESTFunction · 0.50

Calls 1

SetConnectAttrMethod · 0.80

Tested by 1

TYPED_TESTFunction · 0.40