diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2022-07-07 17:40:02 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2022-07-07 17:40:02 -0400 |
commit | 3c633f32b9c712cc0b4c8d946f0eeae04a3ff51a (patch) | |
tree | 5d95561130e6e77e0a7240f86cb5ea739c5a80be /src/tools/pginclude/cpluspluscheck | |
parent | 88210542106de5b26fe6aa088d1811b68502d224 (diff) | |
download | postgresql-3c633f32b9c712cc0b4c8d946f0eeae04a3ff51a.tar.gz postgresql-3c633f32b9c712cc0b4c8d946f0eeae04a3ff51a.zip |
Only allow returning string types or bytea from json_serialize
These are documented to be the allowed types for the RETURNING clause,
but the restriction was not being enforced, which caused a segfault if
another type was specified. Add some testing for this.
Per report from a.kozhemyakin
Backpatch to release 15.
Diffstat (limited to 'src/tools/pginclude/cpluspluscheck')
0 files changed, 0 insertions, 0 deletions