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

Function searchStack

src/jrd/optimizer/Optimizer.cpp:394–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392 }
393
394 bool searchStack(const ValueExprNode* node, const ValueExprNodeStack& stack)
395 {
396 for (ValueExprNodeStack::const_iterator iter(stack); iter.hasData(); ++iter)
397 {
398 if (fieldEqual(node, iter.object()))
399 return true;
400 }
401
402 return false;
403 }
404
405 double getCardinality(thread_db* tdbb, jrd_rel* relation, const Format* format)
406 {

Callers 1

distributeEqualitiesMethod · 0.85

Calls 3

fieldEqualFunction · 0.85
hasDataMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected