Re: Bug #869: varchar 's comparision - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #869: varchar 's comparision
Date
Msg-id 27853.1042173952@sss.pgh.pa.us
Whole thread Raw
In response to Bug #869: varchar 's comparision  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
>        M_ID      VARCHAR(10)         M_DESC    VARCHAR(10)
>     -----------------------------------------------------------
>        ABC                           HELLO

> UPDATE MYTABLE SET M_DESC='GOOD' WHERE M_ID='ABC       ' AND M_DESC='HELLO     '

> UPDATE 0 RECORDS

My guess is that the stored values do not have trailing spaces.
Trailing spaces are significant data in varchar fields.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Bug #869: varchar 's comparision
Next
From: Ruslan A Dautkhanov
Date:
Subject: PPTP + Cisco - is it possible for RADIUS server to allocate IPs?