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

Method GetTables

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

Source from the content-addressed store, hash-verified

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