BUG #2309: Wrong string comparison

From: "Yury Don" <yura(at)vpcit(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2309: Wrong string comparison
Date: 2006-03-09 14:00:53
Message-ID: 20060309140053.ED78CF0B08@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2309
Logged by: Yury Don
Email address: yura(at)vpcit(dot)ru
PostgreSQL version: 8.1.3
Operating system: Linux (Debian)
Description: Wrong string comparison
Details:

Looks like string comparison operators ignore spaces isnside of string.
Because of this sorting on text fields is wrong.

mdb=# select 'a z'::text>'ad'::text;
?column?
----------
t

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marcelo 2006-03-09 14:52:40 Suse Installations
Previous Message Stefan Miefert 2006-03-09 13:27:05 [postgres] Postgres auf Ubuntu installieren