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

Function setFixedSubType

src/dsql/ExprNodes.cpp:643–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641{
642
643bool setFixedSubType(dsc* to, const dsc& from1, const dsc& from2)
644{
645 if (!to->isExact())
646 return false;
647
648 if (from1.isExact() && from2.isExact())
649 to->dsc_sub_type = MAX(from1.dsc_sub_type, from2.dsc_sub_type);
650 else if (from1.isExact())
651 to->dsc_sub_type = from1.dsc_sub_type;
652 else if (from2.isExact())
653 to->dsc_sub_type = from2.dsc_sub_type;
654 else
655 to->dsc_sub_type = 0;
656
657 return true;
658}
659
660const UCHAR DSC_ZTYPE_FLT64 = 0;
661const UCHAR DSC_ZTYPE_FLT128 = 1;

Callers 9

setDecDescFunction · 0.85
makeDialect1Method · 0.85
makeDialect3Method · 0.85
getDescDialect1Method · 0.85
getDescDialect3Method · 0.85
add2Method · 0.85
multiplyMethod · 0.85
multiply2Method · 0.85
divide2Method · 0.85

Calls 1

isExactMethod · 0.80

Tested by

no test coverage detected