Re: New to_timestamp implementation is pretty strict - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: New to_timestamp implementation is pretty strict
Date
Msg-id C28D0F97-787C-44C0-86CD-E26680EEC476@kineticode.com
Whole thread Raw
In response to Re: New to_timestamp implementation is pretty strict  ("Dave Page" <dpage@pgadmin.org>)
Responses Re: New to_timestamp implementation is pretty strict  ("Dave Page" <dpage@pgadmin.org>)
List pgsql-hackers
On Dec 1, 2008, at 3:55 PM, Dave Page wrote:

>> I'm generally in favor of being generous in the input one can  
>> accept, but in
>> this case it seems ambiguous to me. Is that supposed to be :30 or : 
>> 03?
>> There's no way to tell.
>
> How is it ambiguous? The leading zero is technically redundant. A
> trailing on most certainly isn't.

it depends on how you look at it, I suppose. If you look at ":xy" as  
"x" being the 10s position and "y" being the 1s position, it makes no  
sense. If you look at it as an integer, it does.

Best,

David


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Add support for matching wildcard server certificates to the new
Next
From: Magnus Hagander
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Add support for matching wildcard server certificates to the new