Re: [HACKERS] SELECT BUG

From: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
To: hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] SELECT BUG
Date: 1999-09-03 07:13:52
Message-ID: 37CF7530.D63817CB@telecom.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> This inconsistency bothers me: I've always thought that char(),
> varchar(), and text() are functionally interchangeable, but it seems
> that's not so. Is this behavior mandated by SQL92?

Yes, the behavior is correct, and mandated by SQL92.
A char would not be able to hold the information of how many trailing blanks
are user data, since it fills the column with trailing blanks.

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 1999-09-03 07:32:38 RE: [HACKERS] Postgres' lexer
Previous Message Tom Lane 1999-09-03 05:59:28 Re: [HACKERS] SELECT BUG