Re: Remove dependence on integer wrapping

2024-08-10 Thread Matthew Kim
On Mon, Jul 22, 2024 at 5:52 PM Alexander Lakhin wrote: > Also there are several trap-producing cases with date types: > SELECT to_timestamp('10,999', 'Y,YYY'); I attached patch 5 that fixes the to_timestamp overflow. Thank you, Matthew Kim From a01c5d67894de8

Re: Remove dependence on integer wrapping

2024-08-08 Thread Matthew Kim
I've updated patch 0004 to check the return value of pg_mul_s32_overflow(). Since tm.tm_year overflowed, the error message is hardcoded. Thanks, Matthew Kim From c142581fb5f4a26de40cdca0d8ca7d39abdb2e15 Mon Sep 17 00:00:00 2001 From: Joseph Koshakow Date: Sat, 6 Jul 2024 15:41:09 -0400 Su

Re: Remove dependence on integer wrapping

2024-07-24 Thread Matthew Kim
ed fix. Thank you, Matthew Kim v16-0004-Handle-negative-years-overflow-in-make_date.patch Description: Binary data v16-0002-Remove-dependence-on-integer-wrapping-for-jsonb.patch Description: Binary data v16-0001-Remove-dependence-on-integer-wrapping.patch Description: Binary data v16-0003-

Re: Remove dependence on integer wrapping

2024-07-22 Thread Matthew Kim
> > On Mon, Jul 22, 2024 at 5:52 PM Alexander Lakhin > wrote: > > > Also there are several trap-producing cases with date types: > > SELECT to_date('1', 'CC'); > > Hi, I’ve attached a patch that fixes the to_date() overflow. Patches 1 >