pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aasmund Midttun Godal <postgresql@envisity.com>
To: pgsql-sql@postgresql.org
Subject: to_char adds leading space, intended?
Date: Thu, 03 Jan 2002 04:31:29 GMT
Message-ID: <20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com> (raw)

envisity=# SELECT '''' || to_char(1234, '099999') || '''';                           
 ?column?  
-----------
 ' 001234'
(1 row)

Is this the way it's meant to be?

I would prefer 
'001234'

So I don't have to ltrim it.
Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46



view thread (2+ messages)  latest in thread

Message-ID: <20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com>
Permalink:  ../20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com/
Also on:    postgresql.org/message-id/20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: postgresql@envisity.com
  Subject: Re: to_char adds leading space, intended?
  In-Reply-To: <20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com>
  References: <20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox