Received: from 213-145-170-138.dd.nextgentel.com (213-145-170-138.dd.nextgentel.com [213.145.170.138]) by postgresql.org (8.11.3/8.11.4) with SMTP id g034WZm25841 for ; Wed, 2 Jan 2002 23:32:35 -0500 (EST) (envelope-from postgresql@envisity.com) Received: (qmail 29664 invoked by uid 67); 3 Jan 2002 04:31:29 -0000 Message-ID: <20020103043129.20231.qmail@213-145-170-138.dd.nextgentel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline MIME-Version: 1.0 From: "Aasmund Midttun Godal" To: pgsql-sql@postgresql.org Subject: to_char adds leading space, intended? Date: Thu, 03 Jan 2002 04:31:29 GMT X-Mailer: Googley-Moogley Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id g034jNn28644 X-Archive-Number: 200201/3 X-Sequence-Number: 6094 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