| 394 | |
| 395 | |
| 396 | void 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 |
no test coverage detected