Re: Date-Time dangling unit fix

Поиск
Список
Период
Сортировка
От Joseph Koshakow
Тема Re: Date-Time dangling unit fix
Дата
Msg-id CAAvxfHdRsz=KRbp=gFvbOzVfcX1UoDxCzj8BwAYKMt46Hi+eAw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Date-Time dangling unit fix  (Joseph Koshakow <koshy44@gmail.com>)
Ответы Re: Date-Time dangling unit fix  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] Add native windows on arm64 support
Следующее
От: David Rowley
Дата:
Сообщение: Re: slab allocator performance issues