Обсуждение: pgsql: A better fix for the "ARRAY[...]::domain" problem.

Поиск
Список
Период
Сортировка

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

От
heikki@postgresql.org (Heikki Linnakangas)
Дата:
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)