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

Method getDesc

src/dsql/ExprNodes.cpp:546–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544
545
546void ValueListNode::getDesc(thread_db* tdbb, CompilerScratch* csb, dsc* desc)
547{
548 HalfStaticArray<dsc, INITIAL_CAPACITY> descs;
549 descs.resize(items.getCount());
550
551 unsigned i = 0;
552 HalfStaticArray<const dsc*, INITIAL_CAPACITY> descPtrs;
553 descPtrs.resize(items.getCount());
554
555 for (auto& value : items)
556 {
557 value->getDesc(tdbb, csb, &descs[i]);
558 descPtrs[i] = &descs[i];
559 ++i;
560 }
561
562 DataTypeUtil(tdbb).makeFromList(desc, "LIST", descPtrs.getCount(), descPtrs.begin());
563
564 desc->setNullable(true);
565}
566
567
568//--------------------

Callers

nothing calls this directly

Calls 15

DataTypeUtilClass · 0.85
DSC_string_lengthFunction · 0.85
CMP_formatFunction · 0.85
DTYPE_IS_TEXTFunction · 0.85
INTL_charset_lookupFunction · 0.85
DTYPE_IS_DECFLOATFunction · 0.85
DTYPE_IS_NUMERICFunction · 0.85
GdsClass · 0.85
MOV_get_longFunction · 0.85
NumClass · 0.85
makeFromListMethod · 0.80

Tested by

no test coverage detected