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

Method getDesc

src/dsql/AggNodes.cpp:559–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559void AvgAggNode::getDesc(thread_db* tdbb, CompilerScratch* csb, dsc* desc)
560{
561 arg->getDesc(tdbb, csb, desc);
562 outputDesc(desc);
563
564 switch (desc->dsc_dtype)
565 {
566 case dtype_dec64:
567 case dtype_dec128:
568 nodFlags |= FLAG_DECFLOAT;
569 break;
570
571 case dtype_int64:
572 case dtype_int128:
573 nodFlags |= FLAG_INT128;
574 // fall down...
575 case dtype_short:
576 case dtype_long:
577 nodScale = desc->dsc_scale;
578 break;
579
580 case dtype_unknown:
581 break;
582
583 default:
584 nodFlags |= FLAG_DOUBLE;
585 break;
586 }
587}
588
589void AvgAggNode::outputDesc(dsc* desc) const
590{

Callers

nothing calls this directly

Calls 11

DTYPE_IS_DECFLOATFunction · 0.85
GdsClass · 0.85
makeBlobMethod · 0.80
getBlobSubTypeMethod · 0.80
getTextTypeMethod · 0.80
makeLongMethod · 0.80
makeInt64Method · 0.80
isDecOrInt128Method · 0.80
makeDecimal128Method · 0.80
makeDoubleMethod · 0.80
ERR_postFunction · 0.50

Tested by

no test coverage detected