Re: "July" missing from datetime.c - Mailing list pgsql-patches

From Thomas Lockhart
Subject Re: "July" missing from datetime.c
Date
Msg-id 3C2042B9.E7811888@fourpalms.org
Whole thread Raw
In response to "July" missing from datetime.c  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-patches
> template1=# insert into foobar values('11:23 Sunday, July 1, 2001 EDT');
> ERROR:  Bad timestamp external representation '11:23 Friday, July 7, 2000 EDT'
> (Just one line added, so I've inlined the patch)
>         {"jul", MONTH, 7},
> +       {"july", MONTH, 7},
>         {"julian", UNITS, JULIAN},

Got it, thanks. I'll commit a fix in the next day or so. Note that this
table *must* be strictly ordered to allow the optimized table lookup to
work. So, you should place "july" after "julian", not before.

                  - Thomas

pgsql-patches by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: "July" missing from datetime.c
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Patch to fix float8 test on FreeBSD/alpha