| 87 | } |
| 88 | |
| 89 | void MetadataBuilder::setLength(CheckStatusWrapper* status, unsigned index, unsigned length) |
| 90 | { |
| 91 | try |
| 92 | { |
| 93 | MutexLockGuard g(mtx, FB_FUNCTION); |
| 94 | indexError(index, "setLength"); |
| 95 | msgMetadata->items[index].length = length; |
| 96 | |
| 97 | // Setting type & length is enough for an item to be ready for use |
| 98 | if (msgMetadata->items[index].type) |
| 99 | msgMetadata->items[index].finished = true; |
| 100 | } |
| 101 | catch (const Exception& ex) |
| 102 | { |
| 103 | ex.stuffException(status); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | void MetadataBuilder::setCharSet(CheckStatusWrapper* status, unsigned index, unsigned charSet) |
| 108 | { |
no test coverage detected