| 721 | } |
| 722 | |
| 723 | void ODBCStatement::CloseCursor(bool suppress_errors) { |
| 724 | if (!suppress_errors && !current_result_) { |
| 725 | throw DriverException("Invalid cursor state", "24000"); |
| 726 | } |
| 727 | |
| 728 | if (current_result_) { |
| 729 | current_result_->Close(); |
| 730 | current_result_ = nullptr; |
| 731 | } |
| 732 | |
| 733 | // Reset the fetching state of this statement. |
| 734 | current_ard_->NotifyBindingsHaveChanged(); |
| 735 | row_number_ = 0; |
| 736 | has_reached_end_of_result_ = false; |
| 737 | } |
| 738 | |
| 739 | SQLRETURN ODBCStatement::GetData(SQLSMALLINT record_number, SQLSMALLINT c_type, |
| 740 | SQLPOINTER data_ptr, SQLLEN buffer_length, |
no test coverage detected