text & char(32)

From: "Vladimir V(dot) Zolotych" <gsmith(at)eurocom(dot)od(dot)ua>
To: pgsql-admin(at)postgresql(dot)org
Subject: text & char(32)
Date: 2000-09-19 07:46:37
Message-ID: 1490.000919@eurocom.od.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,
Can you help me a bit ?
The question is: how can I compare TEXT and CHAR(32) types ?
More detailed description:
my=> create table foo (tt text, cc char(32));

CREATE
my=> insert into foo values ('aa', 'ab');

INSERT 27476810 1
my=> insert into foo values ('aa', 'aa');

INSERT 27476811 1
my=> select * from foo where tt=cc;

tt|cc
--+--
(0 rows)
So the operator '=' doesn't work as I expected.
Any help will be appreciated.

--
Best regards,
Vladimir mailto:gsmith(at)eurocom(dot)od(dot)ua

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Karel Zak 2000-09-19 09:16:39 Re: text & char(32)
Previous Message M Carling 2000-09-18 16:46:49 [JOB] Postgres DBA needed