MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getMetadata

Method getMetadata

src/common/MsgMetadata.cpp:278–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278IMessageMetadata* 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
303void MetadataBuilder::metadataError(const char* functionName)
304{

Callers

nothing calls this directly

Calls 7

GdsClass · 0.85
NumClass · 0.85
MsgMetadataClass · 0.85
makeOffsetsMethod · 0.80
raiseMethod · 0.45
addRefMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected