pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #11596: Duplicate column
2+ messages / 2 participants
[nested] [flat]

* BUG #11596: Duplicate column
@ 2014-10-06 10:58 kotadiyadhrupesh@gmail.com
  2014-10-06 17:09 ` Re: BUG #11596: Duplicate column Marti Raudsepp <marti@juffo.org>
  0 siblings, 1 reply; 2+ messages in thread

From: kotadiyadhrupesh@gmail.com @ 2014-10-06 10:58 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      11596
Logged by:          Dhrupesh
Email address:      kotadiyadhrupesh@gmail.com
PostgreSQL version: 9.1.14
Operating system:   UBUNTU 12.04
Description:        

Hello,

I have one table which have two field 
one is id and other is ID.
When i featch id then it return always id's
data.

Like,select id,ID from table

Both column return same data


Thanks,
Dhrupesh


-- 
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 #11596: Duplicate column
  2014-10-06 10:58 BUG #11596: Duplicate column kotadiyadhrupesh@gmail.com
@ 2014-10-06 17:09 ` Marti Raudsepp <marti@juffo.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Marti Raudsepp @ 2014-10-06 17:09 UTC (permalink / raw)
  To: kotadiyadhrupesh@gmail.com; +Cc: pgsql-bugs

Hi Dhrupesh,

On Mon, Oct 6, 2014 at 1:58 PM,  <kotadiyadhrupesh@gmail.com> wrote:
> I have one table which have two field
> one is id and other is ID.
> When i featch id then it return always id's
> data.

This is not a bug. Identifiers in the SQL language are
case-insensitive, id and ID refer to the exact same column. In
PostgreSQL's case they are both converted to lower case.

If you want to use uppercase identifiers, you have to quote them using
double quotes:
  select id, "ID" from table;

In general, PostgreSQL community discourages using uppercase letters
anywhere in identifiers.

Regards,
Marti


-- 
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:[~2014-10-06 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-06 10:58 BUG #11596: Duplicate column kotadiyadhrupesh@gmail.com
2014-10-06 17:09 ` Marti Raudsepp <marti@juffo.org>

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