Re: Patch for ISO-8601-Interval Input and output. - Mailing list pgsql-hackers

From R Mayer
Subject Re: Patch for ISO-8601-Interval Input and output.
Date
Msg-id 491882C0.3090904@cheapcomplexdevices.com
Whole thread Raw
In response to Re: Patch for ISO-8601-Interval Input and output.  ("Brendan Jurd" <direvus@gmail.com>)
Responses Re: Patch for ISO-8601-Interval Input and output.
Re: Patch for ISO-8601-Interval Input and output.
List pgsql-hackers
Brendan Jurd wrote:
> On Tue, Nov 11, 2008 at 2:36 AM, Ron Mayer
> I get the expected result from 'P0001', but oddly enough if I specify
> only the year and month, it pukes:
> postgres=# select interval 'P0001-01';

Indeed.  Thanks again.

I've fixed this and added regression tests to check the handling of
optional fields of the "alternative format" which my patch has
been so very bad at handling.

> I'm attaching a patch to clean up a few more code style issues and fix
> broken spec references within C code comments in datetime.c.

Applied and pushed to the website http://0ape.com/postgres_interval_patches/





pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: gram.y=>preproc.y
Next
From: Josh Berkus
Date:
Subject: Re: SQL5 budget