| 1413 | |
| 1414 | |
| 1415 | static void successful_completion(CheckStatusWrapper* s, ISC_STATUS acceptCode = 0) |
| 1416 | { |
| 1417 | fb_assert(s); |
| 1418 | |
| 1419 | const ISC_STATUS* status = s->getErrors(); |
| 1420 | |
| 1421 | // This assert validates whether we really have a successful status vector |
| 1422 | fb_assert(status[0] != isc_arg_gds || status[1] == FB_SUCCESS || status[1] == acceptCode); |
| 1423 | |
| 1424 | // Clear the status vector if it doesn't contain a warning |
| 1425 | if (status[0] != isc_arg_gds || status[1] != FB_SUCCESS || !(s->getState() & IStatus::STATE_WARNINGS)) |
| 1426 | { |
| 1427 | s->init(); |
| 1428 | } |
| 1429 | } |
| 1430 | |
| 1431 | |
| 1432 | // Stuff exception transliterated to the client charset. |
no test coverage detected