pgsql: A better fix for the "ARRAY[...]::domain" problem.

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: A better fix for the "ARRAY[...]::domain" problem.
Date: 2009-11-13 19:48:20
Message-ID: 20091113194820.83A4A753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
A better fix for the "ARRAY[...]::domain" problem. The previous patch worked,
but the transformed ArrayExpr claimed to have a return type of "domain",
even though the domain constraint was only checked by the enclosing
CoerceToDomain node. With this fix, the ArrayExpr is correctly labeled with
the base type of the domain. Per gripe by Tom Lane.

Modified Files:
--------------
pgsql/src/backend/parser:
parse_expr.c (r1.249 -> r1.250)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c?r1=1.249&r2=1.250)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-11-13 19:48:26 pgsql: A better fix for the "ARRAY[...]::domain" problem.
Previous Message User Bmomjian 2009-11-13 19:37:27 pg-migrator - pg_migrator: Re-recommend vacuumdb because we don't