pgsql: A better fix for the "ARRAY[...]::domain" problem. - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: A better fix for the "ARRAY[...]::domain" problem.
Date
Msg-id 20091113194826.3C971753FB7@cvs.postgresql.org
Whole thread Raw
List 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.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.241.2.3 -> r1.241.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c?r1=1.241.2.3&r2=1.241.2.4)

pgsql-committers by date:

Previous
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: A better fix for the "ARRAY[...]::domain" problem.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add control knobs for plpgsql's variable resolution behavior, and