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

Function fieldEqual

src/jrd/optimizer/Optimizer.cpp:313–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 bool fieldEqual(const ValueExprNode* node1, const ValueExprNode* node2)
314 {
315 if (!node1 || !node2)
316 return false;
317
318 if (node1->getType() != node2->getType())
319 return false;
320
321 if (node1 == node2)
322 return true;
323
324 const auto fieldNode1 = nodeAs<FieldNode>(node1);
325 const auto fieldNode2 = nodeAs<FieldNode>(node2);
326
327 if (fieldNode1 && fieldNode2)
328 {
329 return fieldNode1->fieldStream == fieldNode2->fieldStream &&
330 fieldNode1->fieldId == fieldNode2->fieldId;
331 }
332
333 return false;
334 }
335
336 bool fieldEqual(const BoolExprNode* node1, const BoolExprNode* node2)
337 {

Callers 5

augmentStackFunction · 0.85
searchStackFunction · 0.85
setPositionFunction · 0.85
checkSortsMethod · 0.85
distributeEqualitiesMethod · 0.85

Calls 1

getTypeMethod · 0.45

Tested by

no test coverage detected