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

Function SQLNumResultCols

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

Source from the content-addressed store, hash-verified

1242}
1243
1244SQLRETURN SQLNumResultCols(SQLHSTMT stmt, SQLSMALLINT* column_count_ptr) {
1245 ARROW_LOG(DEBUG) << "SQLNumResultCols called with stmt: " << stmt
1246 << ", column_count_ptr: "
1247 << static_cast<const void*>(column_count_ptr);
1248
1249 using ODBC::ODBCStatement;
1250 return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() {
1251 ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt);
1252 statement->GetColumnCount(column_count_ptr);
1253 return SQL_SUCCESS;
1254 });
1255}
1256
1257SQLRETURN SQLRowCount(SQLHSTMT stmt, SQLLEN* row_count_ptr) {
1258 ARROW_LOG(DEBUG) << "SQLRowCount called with stmt: " << stmt

Callers 1

TYPED_TESTFunction · 0.50

Calls 1

GetColumnCountMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.40