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

Function PASS1_compose

src/dsql/pass1.cpp:716–730  ·  view source on GitHub ↗

Compose two booleans.

Source from the content-addressed store, hash-verified

714
715// Compose two booleans.
716BoolExprNode* PASS1_compose(BoolExprNode* expr1, BoolExprNode* expr2, UCHAR blrOp)
717{
718 thread_db* tdbb = JRD_get_thread_data();
719
720 fb_assert(blrOp == blr_and || blrOp == blr_or);
721
722 if (!expr1)
723 return expr2;
724
725 if (!expr2)
726 return expr1;
727
728 return FB_NEW_POOL(*tdbb->getDefaultPool()) BinaryBoolNode(
729 *tdbb->getDefaultPool(), blrOp, expr1, expr2);
730}
731
732
733// Report a field parsing recognition error.

Callers 4

pass1RseIsRecursiveMethod · 0.85
dsqlPassMethod · 0.85
dsqlPassCursorReferenceFunction · 0.85
dsqlPassMethod · 0.85

Calls 3

JRD_get_thread_dataFunction · 0.85
BinaryBoolNodeClass · 0.70
getDefaultPoolMethod · 0.45

Tested by

no test coverage detected