mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:40:38 +01:00
Reject invalid conversion: cast('01-today' as date) - another CORE-5750 case.
This commit is contained in:
parent
fb7a6b48a8
commit
53be87c228
@ -638,7 +638,7 @@ void CVT_string_to_datetime(const dsc* desc,
|
||||
// it's not a month name, so it's either a magic word or
|
||||
// a non-date string. If there are more characters, it's bad
|
||||
|
||||
if (!allow_special)
|
||||
if (!allow_special || i != 0)
|
||||
CVT_conversion_error(desc, cb->err);
|
||||
|
||||
description[i] = SPECIAL;
|
||||
|
Loading…
Reference in New Issue
Block a user