MCPcopy Create free account
hub / github.com/apache/arrow / GetMessageText

Method GetMessageText

cpp/src/arrow/flight/sql/odbc/odbc_impl/diagnostics.cc:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70std::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
80OdbcVersion Diagnostics::GetOdbcVersion() const { return version_; }
81

Callers 7

SQLGetDiagFieldFunction · 0.80
SQLGetDiagRecFunction · 0.80
DisplayConnectionWindowFunction · 0.80
ConfigDSNWFunction · 0.80
ExecuteMethod · 0.80
AddErrorMethod · 0.80
OnMessageMethod · 0.80

Calls 2

to_stringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected