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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 08fbad0) | patch
Fix NULL handling in datum_to_jsonb().
2015年10月15日 17:46:09 +0000 (13:46 -0400)
2015年10月15日 17:46:09 +0000 (13:46 -0400)
commit 3587cbc34fe87e1bde6c202daba791b68e44cb3a
Fix NULL handling in datum_to_jsonb().

The function failed to adhere to its specification that the "tcategory"
argument should not be examined when the input value is NULL. This
resulted in a crash in some cases. Per bug #13680 from Boyko Yordanov.

In passing, re-pgindent some recent changes in jsonb.c, and fix a rather
ungrammatical comment.

Diagnosis and patch by Michael Paquier, cosmetic changes by me
src/backend/utils/adt/jsonb.c diff | blob | blame | history
src/test/regress/expected/jsonb.out diff | blob | blame | history
src/test/regress/sql/jsonb.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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