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

Method AddError

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

Source from the content-addressed store, hash-verified

47std::string Diagnostics::GetVendor() const { return vendor_; }
48
49void 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
59void Diagnostics::AddWarning(std::string message, std::string sql_state,
60 int32_t native_error) {

Callers 1

ExecuteMethod · 0.80

Calls 4

RewriteSQLStateForODBC2Function · 0.85
GetMessageTextMethod · 0.80
push_backMethod · 0.80
GetNativeErrorMethod · 0.45

Tested by

no test coverage detected