| 646 | |
| 647 | |
| 648 | void 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 | |
| 666 | void setParamsDateDiff(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args) |
nothing calls this directly
no test coverage detected