| 68 | } |
| 69 | |
| 70 | std::string Diagnostics::GetMessageText(uint32_t record_index) const { |
| 71 | std::string message; |
| 72 | if (!vendor_.empty()) { |
| 73 | message += std::string("[") + vendor_ + "]"; |
| 74 | } |
| 75 | const DiagnosticsRecord* rec = GetRecordAtIndex(record_index); |
| 76 | return message + "[" + data_source_component_ + "] (" + |
| 77 | std::to_string(rec->native_error) + ") " + rec->msg_text; |
| 78 | } |
| 79 | |
| 80 | OdbcVersion Diagnostics::GetOdbcVersion() const { return version_; } |
| 81 |
no test coverage detected