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

Method AddWarning

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

Source from the content-addressed store, hash-verified

57}
58
59void Diagnostics::AddWarning(std::string message, std::string sql_state,
60 int32_t native_error) {
61 auto record = std::unique_ptr<DiagnosticsRecord>(
62 new DiagnosticsRecord{std::move(message), std::move(sql_state), native_error});
63 if (version_ == OdbcVersion::V_2) {
64 RewriteSQLStateForODBC2(record->sql_state);
65 }
66 TrackRecord(*record);
67 owned_records_.push_back(std::move(record));
68}
69
70std::string Diagnostics::GetMessageText(uint32_t record_index) const {
71 std::string message;

Callers 5

SetConnectAttrMethod · 0.80
GetStringColumnLengthMethod · 0.80
SetStmtAttrMethod · 0.80

Calls 2

RewriteSQLStateForODBC2Function · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected