MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / mergeStatus

Method mergeStatus

src/common/SimpleStatusVector.h:55–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void mergeStatus(const IStatus* from)
56 {
57 int state = from->getState();
58 this->clear();
59
60 if (state & IStatus::STATE_ERRORS)
61 {
62 const ISC_STATUS* s = from->getErrors();
63 unsigned copied = fb_utils::statusLength(s);
64 this->append(s, copied);
65 }
66
67 if (!this->hasData())
68 {
69 this->push(isc_arg_gds);
70 this->push(0);
71 }
72
73 if (state & IStatus::STATE_WARNINGS)
74 {
75 const ISC_STATUS* s = from->getWarnings();
76 unsigned copied = fb_utils::statusLength(s);
77 this->append(s, copied);
78 }
79
80 this->push(isc_arg_end);
81 }
82
83 ISC_STATUS* makeEmergencyStatus() throw()
84 {

Callers 5

send_responseMethod · 0.80
gsecFunction · 0.80
raiseMethod · 0.80
iscLogStatusFunction · 0.80
loadMethod · 0.80

Calls 8

statusLengthFunction · 0.85
getStateMethod · 0.45
clearMethod · 0.45
getErrorsMethod · 0.45
appendMethod · 0.45
hasDataMethod · 0.45
pushMethod · 0.45
getWarningsMethod · 0.45

Tested by

no test coverage detected