aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2014-09-25 15:08:42 -0400
committerAndrew Dunstan <andrew@dunslane.net>2014-09-25 15:12:44 -0400
commitd99d0e60eaa8334b698a070cb919202607660a65 (patch)
treea74415f1c229649b4b5eeabb7e5f4c16281e9001 /src/backend/utils/adt/jsonb_util.c
parent2024ead21b8ac64f0d6cd13d0c1c2cb8d596238e (diff)
downloadpostgresql-d99d0e60eaa8334b698a070cb919202607660a65.tar.gz
postgresql-d99d0e60eaa8334b698a070cb919202607660a65.zip
Remove ill-conceived ban on zero length json object keys.
We removed a similar ban on this in json_object recently, but the ban in datum_to_json was left, which generate4d sprutious errors in othee json generators, notable json_build_object. Along the way, add an assertion that datum_to_json is not passed a null key. All current callers comply with this rule, but the assertion will catch any possible future misbehaviour.
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions