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

Method assign

src/common/MsgMetadata.cpp:396–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395
396void MsgMetadata::assign(IMessageMetadata* from)
397{
398 LocalStatus ls;
399 CheckStatusWrapper status(&ls);
400
401 unsigned count = from->getCount(&status);
402 check(&status);
403 items.resize(count);
404
405 for (unsigned index = 0; index < count; ++index)
406 {
407 items[index].field = from->getField(&status, index);
408 check(&status);
409
410 items[index].relation = from->getRelation(&status, index);
411 check(&status);
412
413 items[index].owner = from->getOwner(&status, index);
414 check(&status);
415
416 items[index].alias = from->getAlias(&status, index);
417 check(&status);
418
419 items[index].type = from->getType(&status, index);
420 check(&status);
421
422 items[index].nullable = from->isNullable(&status, index);
423 check(&status);
424
425 items[index].subType = from->getSubType(&status, index);
426 check(&status);
427
428 items[index].length = from->getLength(&status, index);
429 check(&status);
430
431 items[index].scale = from->getScale(&status, index);
432 check(&status);
433
434 items[index].charSet = from->getCharSet(&status, index);
435 check(&status);
436
437 items[index].finished = true;
438 check(&status);
439 }
440
441 makeOffsets();
442}
443
444} // namespace Firebird

Callers 1

addItemMethod · 0.45

Calls 13

checkFunction · 0.70
getCountMethod · 0.45
resizeMethod · 0.45
getFieldMethod · 0.45
getRelationMethod · 0.45
getOwnerMethod · 0.45
getAliasMethod · 0.45
getTypeMethod · 0.45
isNullableMethod · 0.45
getSubTypeMethod · 0.45
getLengthMethod · 0.45
getScaleMethod · 0.45

Tested by

no test coverage detected