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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c1ca3a1) | patch
Fix treatment of nulls in jsonb_agg and jsonb_object_agg
2015年7月24日 13:40:46 +0000 (09:40 -0400)
2015年7月24日 13:40:46 +0000 (09:40 -0400)
commit d9a356ff2e6bb7ed5fb1145af49fa3e51e68a98a
Fix treatment of nulls in jsonb_agg and jsonb_object_agg

The wrong is_null flag was being passed to datum_to_json. Also, null
object key values are not permitted, and this was not being checked
for. Add regression tests covering these cases, and also add those tests
to the json set, even though it was doing the right thing.

Fixes bug #13514, initially diagnosed by Tom Lane.
src/backend/utils/adt/jsonb.c diff | blob | blame | history
src/test/regress/expected/json.out diff | blob | blame | history
src/test/regress/expected/json_1.out diff | blob | blame | history
src/test/regress/expected/jsonb.out diff | blob | blame | history
src/test/regress/expected/jsonb_1.out diff | blob | blame | history
src/test/regress/sql/json.sql diff | blob | blame | history
src/test/regress/sql/jsonb.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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