mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:03:02 +01:00
Fixed CORE-1489 - DATEADD wrong work with NULL arguments
This commit is contained in:
parent
49d7e2d9d2
commit
fa4d185a33
@ -549,7 +549,12 @@ static void makeDateAdd(DataTypeUtilBase* dataTypeUtil, SysFunction* function, d
|
|||||||
{
|
{
|
||||||
fb_assert(argsCount >= 3);
|
fb_assert(argsCount >= 3);
|
||||||
|
|
||||||
|
bool isNullable;
|
||||||
|
if (initResult(result, argsCount, args, &isNullable))
|
||||||
|
return;
|
||||||
|
|
||||||
*result = *args[2];
|
*result = *args[2];
|
||||||
|
result->setNullable(isNullable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user