Re: Date-Time dangling unit fix
Joseph Koshakow <koshy44@gmail.com>
From: Joseph Koshakow <koshy44@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-12-13T00:11:16Z
Lists: pgsql-hackers
Attachments
- v2-0001-Handle-dangling-units-in-date-time-input.patch (text/x-patch) patch v2-0001
On Mon, Dec 12, 2022 at 10:55 AM Joseph Koshakow <koshy44@gmail.com> wrote: > > I just found another class of this bug that the submitted patch does > not fix. If the units are at the beginning of the string, then they are > also ignored. For example, `date 'm d y2020m11d3'` is also valid. I > think the fix here is to check and make sure that ptype is 0 before > reassigning the value to a non-zero number. I'll send an updated patch > with this tonight. Attached is the described patch. - Joe Koshakow
Commits
-
Tighten error checks in datetime input, and remove bogus "ISO" format.
- 5b3c5953553b 16.0 landed
-
Measure the current transaction time to milliseconds.
- 6f58115dddfa 7.2.1 cited