Re: WIP: to_char, support for EEEE format - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: WIP: to_char, support for EEEE format
Date
Msg-id 37ed240d0908102346y5711345s42575bd146622986@mail.gmail.com
Whole thread Raw
In response to Re: WIP: to_char, support for EEEE format  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
2009/8/11 Pavel Stehule <pavel.stehule@gmail.com>:
> It's nice. I am playing with it, and now I found some potential issue.
> The parser is maybe too tolerant:
>
> postgres=# select to_char(3.14323,'9.9(aaaaaEEEE');
>  to_char
> ----------
>  3.1e+00
> (1 row)
>

I guess we *could* add code to throw an error where the 9's aren't
placed immediately before the E's in the format pattern, but to be
honest I can't work up any enthusiasm about it.

Cheers,
BJ


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Hot standby and synchronous replication status
Next
From: Peter Eisentraut
Date:
Subject: Re: Filtering dictionaries support and unaccent dictionary