diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-10-15 13:46:09 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-10-15 13:46:09 -0400 |
commit | 3587cbc34fe87e1bde6c202daba791b68e44cb3a (patch) | |
tree | f546d6b084272868e13f9af75f61b6b4004181f5 /src/backend/access/transam/parallel.c | |
parent | 08fbad0afd62690cc82990c0504529ef238ac24d (diff) | |
download | postgresql-3587cbc34fe87e1bde6c202daba791b68e44cb3a.tar.gz postgresql-3587cbc34fe87e1bde6c202daba791b68e44cb3a.zip |
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
Diffstat (limited to 'src/backend/access/transam/parallel.c')
0 files changed, 0 insertions, 0 deletions