From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix pg_prepared_statements.result_types for DML statements
Date: Tue, 05 Jul 2022 08:35:58 +0000
Message-ID: <E1o8e2H-001HmW-9n@gemulon.postgresql.org> (raw)
Fix pg_prepared_statements.result_types for DML statements
Amendment to 84ad713cf85aeffee5dd39f62d49a1b9e34632da: Not all
prepared statements have a result descriptor. As currently coded,
this would crash when reading pg_prepared_statements. Make those
cases return null for result_types instead. Also add a test case for
it.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6ffff0fd225432fe2ae4bd5abb7ff6113e255418
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 2 ++
src/backend/commands/prepare.c | 20 ++++++++++++++------
src/test/regress/expected/prepare.out | 7 ++++++-
src/test/regress/sql/prepare.sql | 4 ++++
4 files changed, 26 insertions(+), 7 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Fix pg_prepared_statements.result_types for DML statements
In-Reply-To: <E1o8e2H-001HmW-9n@gemulon.postgresql.org>
References: <E1o8e2H-001HmW-9n@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox