Обсуждение: pgsql: Fix bug in original implementation of xmlserialize(): if user

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

pgsql: Fix bug in original implementation of xmlserialize(): if user

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Fix bug in original implementation of xmlserialize(): if user specifies
a target type that isn't acceptable, the code failed to raise the proper
error.  The result instead was to return a NULL expression tree, which
in a quick test led to a 'cache lookup failed for type 0' error later.

Patch 8.3 only --- I fixed this in HEAD as part of recent locations patch.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.226 -> r1.226.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c?r1=1.226&r2=1.226.2.1)