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

Method setLength

src/common/MsgMetadata.cpp:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void 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
107void MetadataBuilder::setCharSet(CheckStatusWrapper* status, unsigned index, unsigned charSet)
108{

Callers 2

addFunction · 0.45
mainFunction · 0.45

Calls 1

stuffExceptionMethod · 0.45

Tested by

no test coverage detected