text & char(32) - Mailing list pgsql-admin

From Vladimir V. Zolotych
Subject text & char(32)
Date
Msg-id 1490.000919@eurocom.od.ua
Whole thread Raw
Responses Re: text & char(32)
Re: text & char(32)
List 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@eurocom.od.ua



pgsql-admin by date:

Previous
From: M Carling
Date:
Subject: [JOB] Postgres DBA needed
Next
From: Herbert Ambos
Date:
Subject: Re: text & char(32)