1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-08 07:21:33 +03:00
Andrew Dunstan 68d68ff833 Fix two-argument jsonb_object when called with empty arrays
Some over-eager copy-and-pasting on my part resulted in a nonsense
result being returned in this case. I have adopted the same pattern for
handling this case as is used in the one argument form of the function,
i.e. we just skip over the code that adds values to the object.

Diagnosis and patch from Michael Paquier, although not quite his
solution.

Fixes bug #13936.

Backpatch to 9.5 where jsonb_object was introduced.
2016-02-21 10:40:39 -05:00
..
2015-05-23 21:35:49 -04:00
2016-02-08 14:21:00 -05:00
2015-10-28 20:23:53 -04:00
2015-02-01 23:23:40 -05:00