pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik.fearing@dalibo.com>
To: dyuen@rbauction.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8352: Using UPPER in ON clause of JOIN
Date: Fri, 02 Aug 2013 09:05:56 +0200
Message-ID: <51FB5A54.6080101@dalibo.com> (raw)
In-Reply-To: <E1V52bl-0000K8-6j@wrigleys.postgresql.org>
References: <E1V52bl-0000K8-6j@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 08/02/2013 01:48 AM, dyuen@rbauction.com wrote:
> 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))

I am unable to reproduce this.  Can you provide a self-contained example
please?

Vik


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <51FB5A54.6080101@dalibo.com>
Permalink:  ../51FB5A54.6080101@dalibo.com/
Also on:    postgresql.org/message-id/51FB5A54.6080101@dalibo.com

 · 

reply

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: vik.fearing@dalibo.com, dyuen@rbauction.com
  Subject: Re: BUG #8352: Using UPPER in ON clause of JOIN
  In-Reply-To: <51FB5A54.6080101@dalibo.com>
  References: <E1V52bl-0000K8-6j@wrigleys.postgresql.org> <51FB5A54.6080101@dalibo.com>

* 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