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

Method GetTables

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

Source from the content-addressed store, hash-verified

818}
819
820void ODBCStatement::GetTables(const std::string* catalog, const std::string* schema,
821 const std::string* table, const std::string* tableType) {
822 CloseCursor(true);
823 if (connection_.IsOdbc2Connection()) {
824 current_result_ = spi_statement_->GetTables_V2(catalog, schema, table, tableType);
825 } else {
826 current_result_ = spi_statement_->GetTables_V3(catalog, schema, table, tableType);
827 }
828 ird_->PopulateFromResultSetMetadata(current_result_->GetMetadata().get());
829 has_reached_end_of_result_ = false;
830
831 // Direct execution wipes out the prepared state.
832 is_prepared_ = false;
833}
834
835void ODBCStatement::GetColumns(const std::string* catalog, const std::string* schema,
836 const std::string* table, const std::string* column) {

Callers 2

SQLTablesFunction · 0.45
GetTablesForGenericUseFunction · 0.45

Calls 6

IsOdbc2ConnectionMethod · 0.80
GetTables_V2Method · 0.80
GetTables_V3Method · 0.80
GetMetadataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected