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

Method GetColumns

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

Source from the content-addressed store, hash-verified

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