| 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 | { |
no test coverage detected