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

Function setParamsDateAdd

src/jrd/SysFunction.cpp:648–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646
647
648void setParamsDateAdd(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)
649{
650 if (argsCount >= 1 && args[0]->isUnknown())
651 {
652 if (args[1]->dsc_address && // constant
653 CVT_get_long(args[1], 0, JRD_get_thread_data()->getAttachment()->att_dec_status, ERR_post) == blr_extract_millisecond)
654 {
655 args[0]->makeInt64(ISC_TIME_SECONDS_PRECISION_SCALE + 3);
656 }
657 else
658 args[0]->makeInt64(0);
659 }
660
661 if (argsCount >= 3 && args[2]->isUnknown())
662 args[2]->makeTimestamp();
663}
664
665
666void setParamsDateDiff(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)

Callers

nothing calls this directly

Calls 6

CVT_get_longFunction · 0.85
JRD_get_thread_dataFunction · 0.85
makeInt64Method · 0.80
makeTimestampMethod · 0.80
isUnknownMethod · 0.45
getAttachmentMethod · 0.45

Tested by

no test coverage detected