Re: Datetime patch

Поиск
Список
Период
Сортировка
От greg@turnstep.com
Тема Re: Datetime patch
Дата
Msg-id a389ef3bb1701d92d756b567a9518202@biglumber.com
обсуждение исходный текст
Ответ на Re: Datetime patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Datetime patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Greg, does this patch still reject dates with month/days out of range?
> I see some of the range checks are removed.  Where those checks used
> only for the month/date detection?

Yes and yes. The range rejection in the previous code only allowed an
invalid date to be detected earlier than it would have otherwise. It is
the responsibility of the code following it to determine the validity of
the date we construct here.

Some very minimal checking could be put into place, but it would just be
a small subset of the full checking that occurs later on, so it seemed
better to leave all that logic in one place.


- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200307251104
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE/IUhQvJuQZxSWSsgRAthUAJ42qjxGOVRX/Ak/RF5z0KlZu2CUQwCfeYoy
IxRZhzqzNWJM8NeqFKLGesE=
=4rCE
-----END PGP SIGNATURE-----



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PG Patch (fwd) [openserver patch followup #2]
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Datetime patch