From: henart@sofisticat.com.br
To: pgsql-bugs@postgresql.org
Subject: BUG #11094: Does not report error
Date: Wed, 30 Jul 2014 21:04:17 +0000
Message-ID: <20140730210417.2708.97216@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: 11094
Logged by: Henart
Email address: henart@sofisticat.com.br
PostgreSQL version: 9.3.4
Operating system: CentOS 6.5
Description:
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.
if i use
t.valor = 1;
error occurs when compiling the function. in earlier versions (such as 8.4),
SQL STATE 42703 error occurs.
Tks
--
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: henart@sofisticat.com.br
Subject: Re: BUG #11094: Does not report error
In-Reply-To: <20140730210417.2708.97216@wrigleys.postgresql.org>
References: <20140730210417.2708.97216@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