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

Function SQLGetStmtAttr

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

Source from the content-addressed store, hash-verified

995}
996
997SQLRETURN SQLGetStmtAttr(SQLHSTMT stmt, SQLINTEGER attribute, SQLPOINTER value_ptr,
998 SQLINTEGER buffer_length, SQLINTEGER* string_length_ptr) {
999 ARROW_LOG(DEBUG) << "SQLGetStmtAttrW called with stmt: " << stmt
1000 << ", attribute: " << attribute << ", value_ptr: " << value_ptr
1001 << ", buffer_length: " << buffer_length << ", string_length_ptr: "
1002 << static_cast<const void*>(string_length_ptr);
1003
1004 using ODBC::ODBCStatement;
1005
1006 return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() {
1007 ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt);
1008
1009 bool is_unicode = true;
1010
1011 statement->GetStmtAttr(attribute, value_ptr, buffer_length, string_length_ptr,
1012 is_unicode);
1013
1014 return SQL_SUCCESS;
1015 });
1016}
1017
1018SQLRETURN SQLSetStmtAttr(SQLHSTMT stmt, SQLINTEGER attribute, SQLPOINTER value_ptr,
1019 SQLINTEGER string_length) {

Callers 5

TYPED_TESTFunction · 0.50
GetStmtAttrFunction · 0.50
TYPED_TESTFunction · 0.50
TYPED_TESTFunction · 0.50

Calls 1

GetStmtAttrMethod · 0.80

Tested by 5

TYPED_TESTFunction · 0.40
GetStmtAttrFunction · 0.40
TYPED_TESTFunction · 0.40
TYPED_TESTFunction · 0.40