Rethrow an exception with isc_no_meta_update and prefix codes.
| 38 | |
| 39 | // Rethrow an exception with isc_no_meta_update and prefix codes. |
| 40 | void DsqlStatement::rethrowDdlException(status_exception& ex, bool metadataUpdate, DdlNode* node) |
| 41 | { |
| 42 | Arg::StatusVector newVector; |
| 43 | |
| 44 | if (metadataUpdate) |
| 45 | newVector << Arg::Gds(isc_no_meta_update); |
| 46 | |
| 47 | node->putErrorPrefix(newVector); |
| 48 | |
| 49 | const ISC_STATUS* status = ex.value(); |
| 50 | |
| 51 | if (status[1] == isc_no_meta_update) |
| 52 | status += 2; |
| 53 | |
| 54 | newVector.append(Arg::StatusVector(status)); |
| 55 | |
| 56 | status_exception::raise(newVector); |
| 57 | } |
| 58 | |
| 59 | void DsqlStatement::release() |
| 60 | { |
nothing calls this directly
no test coverage detected