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

Method GetColumns

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

Source from the content-addressed store, hash-verified

833}
834
835void ODBCStatement::GetColumns(const std::string* catalog, const std::string* schema,
836 const std::string* table, const std::string* column) {
837 CloseCursor(true);
838 if (connection_.IsOdbc2Connection()) {
839 current_result_ = spi_statement_->GetColumns_V2(catalog, schema, table, column);
840 } else {
841 current_result_ = spi_statement_->GetColumns_V3(catalog, schema, table, column);
842 }
843 ird_->PopulateFromResultSetMetadata(current_result_->GetMetadata().get());
844 has_reached_end_of_result_ = false;
845
846 // Direct execution wipes out the prepared state.
847 is_prepared_ = false;
848}
849
850void ODBCStatement::GetTypeInfo(SQLSMALLINT data_type) {
851 CloseCursor(true);

Callers 1

SQLColumnsFunction · 0.80

Calls 6

IsOdbc2ConnectionMethod · 0.80
GetColumns_V2Method · 0.80
GetColumns_V3Method · 0.80
GetMetadataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected