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

Function dsqlPassArray

src/dsql/StmtNodes.cpp:10102–10116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10100}
10101
10102static ValueListNode* dsqlPassArray(DsqlCompilerScratch* dsqlScratch, ValueListNode* input)
10103{
10104 if (!input)
10105 return NULL;
10106
10107 MemoryPool& pool = dsqlScratch->getPool();
10108 ValueListNode* output = FB_NEW_POOL(pool) ValueListNode(pool, input->items.getCount());
10109 NestConst<ValueExprNode>* ptr = input->items.begin();
10110 NestConst<ValueExprNode>* ptr2 = output->items.begin();
10111
10112 for (const NestConst<ValueExprNode>* const end = input->items.end(); ptr != end; ++ptr, ++ptr2)
10113 *ptr2 = Node::doDsqlPass(dsqlScratch, *ptr);
10114
10115 return output;
10116}
10117
10118// Turn a cursor reference into a record selection expression.
10119static dsql_ctx* dsqlPassCursorContext(DsqlCompilerScratch* dsqlScratch, const MetaName& cursor,

Callers 2

dsqlPassMethod · 0.85
dsqlProcessReturningFunction · 0.85

Calls 4

ValueListNodeClass · 0.70
getCountMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected