| 818 | } |
| 819 | |
| 820 | void 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 | |
| 835 | void ODBCStatement::GetColumns(const std::string* catalog, const std::string* schema, |
| 836 | const std::string* table, const std::string* column) { |
no test coverage detected