Re: Bug 1500 - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Bug 1500
Date
Msg-id 200503261556.43121.josh@agliodbs.com
Whole thread Raw
In response to Re: Bug 1500  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: Bug 1500  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Alvaro,

> On Sat, Mar 26, 2005 at 02:04:14PM -0800, Josh Berkus wrote:
> > SELECT to_char( INTERVAL '43 hours 20 minutes', 'MI' ) || ' min';
> > 2600 min
>
> Hmm, what if you wanted more than one literal string?  Say "1 mon 3
> days" ... your concatenation idea wouldn't work.  ISTM the format string
> should allow unconverted literals, so you would use
>
> SELECT to_char( INTERVAL '43 hours 20 minutes', 'MI min' );

Hmmm, good point.

Question: how does to_char tell the difference between a code ("MI") and a 
code which is also part of a word? ("MIN").

--Josh

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug 1500
Next
From: Palle Girgensohn
Date:
Subject: Re: Patch for collation using ICU