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

Function getFType

src/dsql/ExprNodes.cpp:678–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676};
677
678UCHAR getFType(const dsc& desc)
679{
680 switch (desc.dsc_dtype)
681 {
682 case dtype_dec64:
683 return DSC_ZTYPE_FLT64;
684 case dtype_dec128:
685 return DSC_ZTYPE_FLT128;
686 case dtype_int128:
687 return DSC_ZTYPE_FIXED;
688 case dtype_int64:
689 return DSC_ZTYPE_INT64;
690 }
691
692 if (DTYPE_IS_EXACT(desc.dsc_dtype))
693 return DSC_ZTYPE_INT;
694
695 return DSC_ZTYPE_OTHER;
696}
697
698enum Scaling { SCALE_MIN, SCALE_SUM };
699

Callers 1

setDecDescFunction · 0.85

Calls 1

DTYPE_IS_EXACTFunction · 0.85

Tested by

no test coverage detected