From: Tom Lane <tgl@sss.pgh.pa.us>
To: henart@sofisticat.com.br
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11094: Does not report error
Date: Wed, 30 Jul 2014 17:51:46 -0400
Message-ID: <14893.1406757106@sss.pgh.pa.us> (raw)
In-Reply-To: <20140730210417.2708.97216@wrigleys.postgresql.org>
References: <20140730210417.2708.97216@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
henart@sofisticat.com.br writes:
> drop type if exists tp_testes cascade;
> create type tp_testes as ( tipo integer);
> create or replace function fnc_testes() returns tp_testes as
> $$
> declare
> t tp_testes;
> x integer;
> begin
> t.tipo = 1;
> x = t.valor ;
> return t;
> end;
> $$
> language plpgsql;
> the above script does not report error when compiling the function, but
> "t.valor" does not exists in type.
It's not expected to give an error; expressions are only syntax-checked
not analyzed for semantic validity.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, henart@sofisticat.com.br
Subject: Re: BUG #11094: Does not report error
In-Reply-To: <14893.1406757106@sss.pgh.pa.us>
References: <20140730210417.2708.97216@wrigleys.postgresql.org> <14893.1406757106@sss.pgh.pa.us>
* 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