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

Function makeDecFloatResult

src/jrd/SysFunction.cpp:996–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994
995
996void makeDecFloatResult(DataTypeUtilBase*, const SysFunction*, dsc* result,
997 int argsCount, const dsc** args)
998{
999 if (argsCount == 0 || args[0]->dsc_dtype == dtype_dec128)
1000 result->makeDecimal128();
1001 else
1002 result->makeDecimal64();
1003
1004 bool isNullable;
1005 if (initResult(result, argsCount, args, &isNullable))
1006 return;
1007
1008 result->setNullable(isNullable);
1009}
1010
1011
1012void makePi(DataTypeUtilBase*, const SysFunction*, dsc* result, int, const dsc**)

Callers

nothing calls this directly

Calls 4

initResultFunction · 0.85
makeDecimal128Method · 0.80
makeDecimal64Method · 0.80
setNullableMethod · 0.80

Tested by

no test coverage detected