mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Allow empty string object keys in json_object().
This makes the behaviour consistent with the json parser, other json-generating functions, and the JSON standards.
This commit is contained in:
@ -435,7 +435,7 @@ select json_object('{a,b,c,"d e f"}','{1,2,3,"a b c",g}');
|
||||
|
||||
select json_object('{a,b,NULL,"d e f"}','{1,2,3,"a b c"}');
|
||||
|
||||
-- empty key error
|
||||
-- empty key is allowed
|
||||
|
||||
select json_object('{a,b,"","d e f"}','{1,2,3,"a b c"}');
|
||||
|
||||
|
Reference in New Issue
Block a user