Re: Patch for ISO-8601-Interval Input and output.

From: "Brendan Jurd" <direvus(at)gmail(dot)com>
To: "Ron Mayer" <rm_pg(at)cheapcomplexdevices(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch for ISO-8601-Interval Input and output.
Date: 2008-11-10 17:37:40
Message-ID: 37ed240d0811100937h55fa9b99oa7171b00d0480374@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 11, 2008 at 2:36 AM, Ron Mayer
<rm_pg(at)cheapcomplexdevices(dot)com> wrote:
> I updated my web site[1] with the latest version of this patch.

I'm just testing this latest version out now.

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';
ERROR: invalid input syntax for type interval: "P0001-01"
LINE 1: select interval 'P0001-01';

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.

Cheers,
BJ

Attachment Content-Type Size
iso8601_interval-3.diff application/octet-stream 2.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2008-11-10 17:38:58 Re: gram.y=>preproc.y
Previous Message Heikki Linnakangas 2008-11-10 16:36:07 Re: per-database locale: createdb switches