mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:03:03 +01:00
Backported fix for CORE-4789 - Prohibit ability to cast timestamps that out of valid range to varchar.
This commit is contained in:
parent
6dd081c006
commit
4a4868226f
@ -1648,6 +1648,9 @@ dsc* evlDateAdd(Jrd::thread_db* tdbb, const SysFunction* function, Jrd::jrd_nod*
|
||||
break;
|
||||
}
|
||||
|
||||
if (!TimeStamp::isValidTimeStamp(timestamp.value()))
|
||||
status_exception::raise(Arg::Gds(isc_datetime_range_exceeded));
|
||||
|
||||
EVL_make_value(tdbb, valueDsc, impure);
|
||||
|
||||
switch (impure->vlu_desc.dsc_dtype)
|
||||
|
Loading…
Reference in New Issue
Block a user