| 174 | } |
| 175 | |
| 176 | static void check(Firebird::IStatus* status) |
| 177 | { |
| 178 | if (status->getState() & Firebird::IStatus::STATE_ERRORS) |
| 179 | { |
| 180 | #ifdef INTERNAL_FIREBIRD |
| 181 | Firebird::status_exception::raise(status); |
| 182 | #else |
| 183 | char msg[100]; |
| 184 | const ISC_STATUS* st = status->getErrors(); |
| 185 | fb_interpret(msg, sizeof(msg), &st); |
| 186 | fatalErrorHandler(msg); |
| 187 | #endif |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | // Attention! |
| 192 | // No addRef/release interface here! |
no test coverage detected