pgsql: Disallow SETOF in the input of parseTypeString().

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Disallow SETOF in the input of parseTypeString().
Date: 2004-12-15 20:15:25
Message-ID: 20041215201525.A6D6E3B4DD1@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Disallow SETOF in the input of parseTypeString(). Formerly it was
silently ignored, allowing one to write bizarre things like
DECLARE x setof int;
in plpgsql. This has misled at least one novice into thinking that
plpgsql variables could be sets ...

Modified Files:
--------------
pgsql/src/backend/parser:
parse_type.c (r1.71 -> r1.72)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_type.c.diff?r1=1.71&r2=1.72)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-12-15 21:13:35 pgsql: Fix another place broken by new List implementation :-(.
Previous Message Tom Lane 2004-12-15 19:16:56 pgsql: Calculation of keys_are_unique flag was wrong for cases involving