| 60 | namespace { |
| 61 | |
| 62 | void check(const char* s, IStatus* st) |
| 63 | { |
| 64 | if (!(st->getState() & IStatus::STATE_ERRORS)) |
| 65 | return; |
| 66 | |
| 67 | Arg::StatusVector newStatus(st); |
| 68 | newStatus << Arg::Gds(isc_crdb_load) << s; |
| 69 | newStatus.raise(); |
| 70 | } |
| 71 | |
| 72 | bool openDb(const char* securityDb, RefPtr<IAttachment>& att, RefPtr<ITransaction>& tra) |
| 73 | { |