Date-time parsing is very weak [CORE5750] #6013
Submitted by: @asfernandes
Firebird date-time parser accepts non-standard separators, accepting (interpreting) wrong strings.
These are currently considered valid:
SQL> select timestamp '2018-01-01 10 20 30' from rdb$database;
SQL> select timestamp '2018-01-01 10,20,30 40' from rdb$database;
This is a problem when timezone is introduced, as the zone is separated from the time by a space.
The text was updated successfully, but these errors were encountered:
Commented by: @asfernandes
Fixed in branch work/time-zone-support.
Date components separator may be a single one (first and second occurence): dash, slash or dot.
Time components (hours to minutes to seconds) separator may be colon.
Seconds to fractions separator may be dot.
There could not be any separator (other than spaces) between date and time.
Spaces are allowed before and after separator characters.