Re: Make length(char(n)) return 'true' length

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Make length(char(n)) return 'true' length
Date: 2004-02-12 18:58:37
Message-ID: 200402121858.i1CIwce12101@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gavin Sherry wrote:
> I believe Tom applied this while you were away.

Oh, sorry, I see it now:

test=> select length('blah'::char(10));
length
--------
4
(1 row)

I did test this before placing it the queue, but I now realize I have
been testing regression installs, not command-line installs that I invoke
via psql manually.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-02-12 18:58:56 Re: Make length(char(n)) return 'true' length
Previous Message Gavin Sherry 2004-02-12 18:51:26 Re: Make length(char(n)) return 'true' length