pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8352: Using UPPER in ON clause of JOIN
2+ messages / 2 participants
[nested] [flat]
* BUG #8352: Using UPPER in ON clause of JOIN
@ 2013-08-01 23:48 dyuen@rbauction.com
0 siblings, 1 reply; 2+ messages in thread
From: dyuen@rbauction.com @ 2013-08-01 23:48 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #8352: Using UPPER in ON clause of JOIN
@ 2013-08-02 07:05 Vik Fearing <vik.fearing@dalibo.com>
parent: dyuen@rbauction.com
0 siblings, 0 replies; 2+ messages in thread
From: Vik Fearing @ 2013-08-02 07:05 UTC (permalink / raw)
To: dyuen@rbauction.com; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-08-02 07:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-08-01 23:48 BUG #8352: Using UPPER in ON clause of JOIN dyuen@rbauction.com
2013-08-02 07:05 ` Vik Fearing <vik.fearing@dalibo.com>
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