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

Method GetColumnCount

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

Source from the content-addressed store, hash-verified

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