diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2015-07-24 09:40:46 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2015-07-24 09:40:46 -0400 |
commit | d9a356ff2e6bb7ed5fb1145af49fa3e51e68a98a (patch) | |
tree | 2320f3f55faa3d0e3c92f2b4a39d9f22dcaeda46 /src/backend/access/tablesample/tablesample.c | |
parent | c1ca3a19df376bcbb6d651d15b9a4ffcaa377ff1 (diff) | |
download | postgresql-d9a356ff2e6bb7ed5fb1145af49fa3e51e68a98a.tar.gz postgresql-d9a356ff2e6bb7ed5fb1145af49fa3e51e68a98a.zip |
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.
Diffstat (limited to 'src/backend/access/tablesample/tablesample.c')
0 files changed, 0 insertions, 0 deletions