Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V59RC-0004LW-AS for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Aug 2013 07:06:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V59RB-0004I0-M9 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Aug 2013 07:06:09 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V59RA-0004Ht-L9 for pgsql-bugs@postgresql.org; Fri, 02 Aug 2013 07:06:08 +0000 Received: from mimolette.dalibo.net ([212.85.154.222]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V59R3-00045q-PL for pgsql-bugs@postgresql.org; Fri, 02 Aug 2013 07:06:07 +0000 Received: from [192.168.0.38] (ip-68.net-81-220-133.standre.rev.numericable.fr [81.220.133.68]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 7E37A4500D97; Fri, 2 Aug 2013 09:05:57 +0200 (CEST) Message-ID: <51FB5A54.6080101@dalibo.com> Date: Fri, 02 Aug 2013 09:05:56 +0200 From: Vik Fearing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: dyuen@rbauction.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8352: Using UPPER in ON clause of JOIN References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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