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

Method GetColumnCount

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc:790–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788}
789
790void ODBCStatement::GetColumnCount(SQLSMALLINT* column_count_ptr) {
791 if (!column_count_ptr) {
792 // column count pointer is not valid, do nothing as ODBC spec does not mention this as
793 // an error
794 return;
795 }
796 size_t column_count = ird_->GetRecords().size();
797 *column_count_ptr = static_cast<SQLSMALLINT>(column_count);
798}
799
800void ODBCStatement::GetRowCount(SQLLEN* row_count_ptr) {
801 if (!row_count_ptr) {

Callers 5

SQLNumResultColsFunction · 0.45
TestGetTablesV2Function · 0.45
TestGetColumnsV3Function · 0.45
FlightSqlResultSetMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 2

TestGetTablesV2Function · 0.36
TestGetColumnsV3Function · 0.36