From: Tom Lane <tgl@sss.pgh.pa.us>
To: Evgeniy Galkin <unikoid@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6270: Invalid string comparison if the string contains '+' or '-' sign.
Date: Tue, 25 Oct 2011 14:13:28 -0400
Message-ID: <25980.1319566408@sss.pgh.pa.us> (raw)
In-Reply-To: <201110251537.p9PFbxVn000209@wwwmaster.postgresql.org>
References: <201110251537.p9PFbxVn000209@wwwmaster.postgresql.org>
"Evgeniy Galkin" <unikoid@gmail.com> writes:
> I'm trying to compare two strings which are starting with '+' and '-' signs.
> And there is some strange behaviour.
This is fairly standard if you're using a non-C locale. Try creating a
fresh database with LC_COLLATE and LC_CTYPE set to 'C'.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, unikoid@gmail.com
Subject: Re: BUG #6270: Invalid string comparison if the string contains '+' or '-' sign.
In-Reply-To: <25980.1319566408@sss.pgh.pa.us>
References: <201110251537.p9PFbxVn000209@wwwmaster.postgresql.org> <25980.1319566408@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox