| 311 | } |
| 312 | |
| 313 | void ODBCStatement::ExecuteDirect(const std::string& query) { |
| 314 | if (spi_statement_->Execute(query)) { |
| 315 | current_result_ = spi_statement_->GetResultSet(); |
| 316 | ird_->PopulateFromResultSetMetadata(current_result_->GetMetadata().get()); |
| 317 | has_reached_end_of_result_ = false; |
| 318 | } |
| 319 | |
| 320 | // Direct execution wipes out the prepared state. |
| 321 | is_prepared_ = false; |
| 322 | } |
| 323 | |
| 324 | bool ODBCStatement::Fetch(size_t rows, SQLULEN* row_count_ptr, |
| 325 | SQLUSMALLINT* row_status_array) { |
nothing calls this directly
no test coverage detected