diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2022-07-05 10:26:36 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2022-07-05 10:26:36 +0200 |
| commit | 6ffff0fd225432fe2ae4bd5abb7ff6113e255418 (patch) | |
| tree | f91bd8fc1216b34cace2ac81a5aeab6ec3fb8cb8 /doc/src | |
| parent | e3dd7c06e62774628e102c3cd47ee46e85519de7 (diff) | |
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.
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/catalogs.sgml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index ef7ae7e8fdc..4f3f375a84a 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -11511,6 +11511,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx form of an array of <type>regtype</type>. The OID corresponding to an element of this array can be obtained by casting the <type>regtype</type> value to <type>oid</type>. + If the prepared statement does not provide a result (e.g., a DML + statement), then this field will be null. </para></entry> </row> |
