| 47 | std::string Diagnostics::GetVendor() const { return vendor_; } |
| 48 | |
| 49 | void Diagnostics::AddError(const DriverException& exception) { |
| 50 | auto record = std::unique_ptr<DiagnosticsRecord>(new DiagnosticsRecord{ |
| 51 | exception.GetMessageText(), exception.GetSqlState(), exception.GetNativeError()}); |
| 52 | if (version_ == OdbcVersion::V_2) { |
| 53 | RewriteSQLStateForODBC2(record->sql_state); |
| 54 | } |
| 55 | TrackRecord(*record); |
| 56 | owned_records_.push_back(std::move(record)); |
| 57 | } |
| 58 | |
| 59 | void Diagnostics::AddWarning(std::string message, std::string sql_state, |
| 60 | int32_t native_error) { |
no test coverage detected