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

Function SQLNumResultCols

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

Source from the content-addressed store, hash-verified

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