git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8821054) | patch
Only allow returning string types or bytea from json_serialize
Thu, 7 Jul 2022 21:40:02 +0000 (17:40 -0400)
Thu, 7 Jul 2022 21:40:02 +0000 (17:40 -0400)
commit 3c633f32b9c712cc0b4c8d946f0eeae04a3ff51a
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.
src/backend/parser/parse_expr.c diff | blob | blame | history
src/test/regress/expected/sqljson.out diff | blob | blame | history
src/test/regress/sql/sqljson.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /