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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e45c5be) | patch
Make edge-case behavior of jsonb_populate_record match json_populate_record
2017年5月29日 23:29:42 +0000 (19:29 -0400)
2017年5月29日 23:29:42 +0000 (19:29 -0400)
commit 68cff231e3a3d0ca9988cf1fde5a3be53235b3bb
Make edge-case behavior of jsonb_populate_record match json_populate_record

json_populate_record throws an error if asked to convert a JSON scalar
or array into a composite type. jsonb_populate_record was returning
a record full of NULL fields instead. It seems better to make it
throw an error for this case as well.

Nikita Glukhov

Discussion: https://postgr.es/m/fbd1d566-bba0-a3de-d6d0-d3b1d7c24ff2@postgrespro.ru
src/backend/utils/adt/jsonfuncs.c diff | blob | blame | history
src/test/regress/expected/jsonb.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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