pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement
2+ messages / 2 participants
[nested] [flat]

* BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement
@ 2015-07-08 11:29  atulcs178@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: atulcs178@gmail.com @ 2015-07-08 11:29 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13494
Logged by:          Atul Srivastava
Email address:      atulcs178@gmail.com
PostgreSQL version: 9.1.9
Operating system:   Windows 7
Description:        

PostgreSQL database displays data of the first column,under second column
name, When we merge two columns in the Select statement. However it should
throw error if we don't put any comma (,) in between both columns.

Note : We are getting error message like ("syntax error"). if we are trying
to merge three columns. However it is not throwing any error if we merged
two columns (it's just showing data of the first column,under second column
name)


-- 
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 #13494: Postgresql database displays first column data on merging of two columns in the Select statement
@ 2015-07-08 13:27  Andres Freund <andres@anarazel.de>
  parent: atulcs178@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2015-07-08 13:27 UTC (permalink / raw)
  To: atulcs178@gmail.com; +Cc: pgsql-bugs

On 2015-07-08 11:29:55 +0000, atulcs178@gmail.com wrote:
> PostgreSQL database displays data of the first column,under second column
> name, When we merge two columns in the Select statement. However it should
> throw error if we don't put any comma (,) in between both columns.

You mean like "SELECT column_a column_b", right? In that case column_b
is the alias for column_a. The SQL standard has made the AS for column
aliases optional.

Regards,

Andres


-- 
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:[~2015-07-08 13:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 11:29 BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement atulcs178@gmail.com
2015-07-08 13:27 ` Andres Freund <andres@anarazel.de>

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