to_char problem

From: "postgresql" <pgsql(at)symcom(dot)com>
To: "PgSQL-SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: to_char problem
Date: 2002-04-13 16:57:25
Message-ID: 20020413163554.540AE475902@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Can some one explain this result. Notice the select.... the result
shows the month followed by 5 spaces and then the comma one
space and the year.

Why are there 5 spaces (ascii 32) after the month? I get the same
thing if I say 'MonthDD, YYYY'. That is no space after the month.

Is this is operating as expected and my expectations are wrong,
point me to the manual pages that explain it.

Mac OSX 10.1.2 postgresql 7.2.1

fifthcolor=# select to_char(termdate, 'Month DD, YYYY') from
employees where code = 'MM';
to_char
--------------------
April 09, 2002
(1 row)

Ted

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-04-13 17:00:38 Re: to_char problem
Previous Message Stephan Szabo 2002-04-13 14:57:08 Re: deletions on master table takes for ever...