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

Method GetColumnCount

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

Source from the content-addressed store, hash-verified

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