pgsql: Fix bug in original implementation of xmlserialize(): if user - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix bug in original implementation of xmlserialize(): if user
Date
Msg-id 20080829172750.C3C27755315@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Suppress gcc warning about possibly-uninitialized variable.
Next
From: alvherre@postgresql.org (Alvaro Herrera)
Date:
Subject: pgsql: Fixup pg_dumpall adding --lock-wait-timeout, to match pg_dump.