From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: porturpotgieter@gmail.com
Subject: BUG #17408: Duplicate aliases silently fail
Date: Wed, 16 Feb 2022 10:36:31 +0000
Message-ID: <17408-ae0a8b62c0feea01@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17408
Logged by: Kevin Potgieter
Email address: porturpotgieter@gmail.com
PostgreSQL version: 13.6
Operating system: Not related
Description:
Hi,
Assigning aliases to columns works perfectly.
eg. "SELECT name AS customer_name FROM customers"
However you are able to assign duplicate aliases which does not cause a
conflict
eg. "SELECT name AS customer_name, surname AS customer_name FROM
customers"
The expectation here is that duplicate aliases would cause the query to fail
due to duplicate column names in the result, however there is no error or
warning.
Regards
Kevin
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, porturpotgieter@gmail.com
Subject: Re: BUG #17408: Duplicate aliases silently fail
In-Reply-To: <17408-ae0a8b62c0feea01@postgresql.org>
* 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