| 276 | } |
| 277 | |
| 278 | IMessageMetadata* MetadataBuilder::getMetadata(CheckStatusWrapper* status) |
| 279 | { |
| 280 | try |
| 281 | { |
| 282 | MutexLockGuard g(mtx, FB_FUNCTION); |
| 283 | |
| 284 | metadataError("getMetadata"); |
| 285 | |
| 286 | unsigned i = msgMetadata->makeOffsets(); |
| 287 | if (i != ~0u) |
| 288 | { |
| 289 | (Arg::Gds(isc_item_finish) << Arg::Num(i)).raise(); |
| 290 | } |
| 291 | |
| 292 | MsgMetadata* rc = FB_NEW MsgMetadata(msgMetadata); |
| 293 | rc->addRef(); |
| 294 | return rc; |
| 295 | } |
| 296 | catch (const Exception& ex) |
| 297 | { |
| 298 | ex.stuffException(status); |
| 299 | } |
| 300 | return NULL; |
| 301 | } |
| 302 | |
| 303 | void MetadataBuilder::metadataError(const char* functionName) |
| 304 | { |
nothing calls this directly
no test coverage detected