From: dyuen@rbauction.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8352: Using UPPER in ON clause of JOIN
Date: Thu, 01 Aug 2013 23:48:37 +0000
Message-ID: <E1V52bl-0000K8-6j@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: 8352
Logged by: Daisy
Email address: dyuen@rbauction.com
PostgreSQL version: 9.2.4
Operating system: Windows 7
Description:
When joining two tables on a varchar column wrapped in a upper statement,
the join does not work if there is a trailing space in both of the varchar
values.
In the two examples below, VALUE1 and VALUE2 = "ABC "
-- Doesn't work
SELECT * FROM TABLE1 INNER JOIN TABLE2 ON UPPER(VALUE1) = UPPER(VALUE2)
-- Works
SELECT * FROM TABLE1 INNER JOIN TABLE2 ON UPPER(TRIM(VALUE1)) =
UPPER(TRIM(VALUE2))
--
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: dyuen@rbauction.com
Subject: Re: BUG #8352: Using UPPER in ON clause of JOIN
In-Reply-To: <E1V52bl-0000K8-6j@wrigleys.postgresql.org>
References: <E1V52bl-0000K8-6j@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