From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: karacho@kommespaeter.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6306: sql parser: weird behaviour when selecting tablename.'name' from a table
Date: Thu, 24 Nov 2011 14:36:29 +0200
Message-ID: <4ECE3A4D.10202@enterprisedb.com> (raw)
In-Reply-To: <201111240944.pAO9imQB065672@wwwmaster.postgresql.org>
References: <201111240944.pAO9imQB065672@wwwmaster.postgresql.org>
On 24.11.2011 11:44, karacho@kommespaeter.de wrote:
> PostgreSQL version: 8.4
> ...
> Selecting (nonexistant) column 'name' or 'varchar' results in an error.
> Selecting qualified nonexistant columns 'name' or 'varchar', you get the
> record as record. The view definition shows * casted to name or varchar.
>
> db=# create temp table tmp_table (a int, b text);
> CREATE TABLE
> db=# create view v_tmp as select name from tmp_table;
> FEHLER: Spalte »name« existiert nicht
> ZEILE 1: create view v_tmp as select name from tmp_table;
> ^
> db=# create view v_tmp as select tmp_table.name, tmp_table.varchar from
> tmp_table;
See: http://archives.postgresql.org/pgsql-sql/2011-08/msg00028.php
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki.linnakangas@enterprisedb.com, karacho@kommespaeter.de
Subject: Re: BUG #6306: sql parser: weird behaviour when selecting tablename.'name' from a table
In-Reply-To: <4ECE3A4D.10202@enterprisedb.com>
References: <201111240944.pAO9imQB065672@wwwmaster.postgresql.org> <4ECE3A4D.10202@enterprisedb.com>
* 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