From: v-brody@seznam.cz
To: pgsql-bugs@postgresql.org
Subject: BUG #13273: A query that returns wrongly labeled result instead of syntax error
Date: Mon, 11 May 2015 22:46:30 +0000
Message-ID: <20150511224630.2714.40796@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13273
Logged by: Missing comma in SELECT list results in wrong label without error
Email address: v-brody@seznam.cz
PostgreSQL version: 9.4.1
Operating system: CentOS Linux
Description:
Following query (notice the missing comma between top-level "x" and "y")
returns 1 (which is "x" value) under label "y" without any warning.
select
"x" "y"
from
(
select
"a" as "x", "b" as "y"
from
(
select 1 as "a", 2 as "b"
) "subquery1"
) "subquery2";
Expected behavior: syntax error
Environment:
PostgreSQL 9.4.1 on Linux version 2.6.32-504.16.2.el6.x86_64
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: v-brody@seznam.cz
Subject: Re: BUG #13273: A query that returns wrongly labeled result instead of syntax error
In-Reply-To: <20150511224630.2714.40796@wrigleys.postgresql.org>
References: <20150511224630.2714.40796@wrigleys.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