Fix JSON_OBJECTAGG uniquefying bug
Andrew Dunstan <andrew@dunslane.net>
Fix JSON_OBJECTAGG uniquefying bug Commit f4fb45d15c contained a bug in removing items with null values when unique keys are required, where the leading items that are sorted contained such values. Fix that and add a test for it. Discussion: https://postgr.es/m/CAJA4AWQ_XbSmsNbW226UqNyRLJ+wb=iQkQMj77cQyoNkqtf=2Q@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonb_util.c | modified | +12 −2 |
| src/test/regress/expected/sqljson.out | modified | +7 −0 |
| src/test/regress/sql/sqljson.sql | modified | +3 −0 |
Discussion
- json_object returning jsonb reuslt different from returning json, returning text 4 messages · 2022-04-25 → 2022-04-28