From: whiplash@bss.org.ua
To: pgsql-bugs@postgresql.org
Subject: BUG #8118: Wrong sorting text
Date: Fri, 26 Apr 2013 18:36:27 +0000
Message-ID: <E1UVnVT-00085i-Ed@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8118
Logged by: whiplash
Email address: whiplash@bss.org.ua
PostgreSQL version: 9.2.2
Operating system: Linux (Fedora 11, Fedora 16 and Ubuntu 12.04)
Description:
I execute query (1):
SELECT t.name
FROM
(
SELECT 'AAA AAA' AS name
UNION ALL
SELECT 'AAA_AAA'
UNION ALL
SELECT 'BBB_AAA'
UNION ALL
SELECT 'BBB AAB'
) t
ORDER BY t.name
and I getting a result:
AAA AAA
AAA_AAA
BBB_AAA
BBB AAB
I think this is result more correct:
AAA AAA
AAA_AAA
BBB AAB
BBB_AAA
On Windows 7 and FreeBSD 9.x query (1) returns correct result.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: whiplash@bss.org.ua
Subject: Re: BUG #8118: Wrong sorting text
In-Reply-To: <E1UVnVT-00085i-Ed@wrigleys.postgresql.org>
References: <E1UVnVT-00085i-Ed@wrigleys.postgresql.org>
* 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