pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix broken jsonb_set() logic for replacing array elements. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix broken jsonb_set() logic for replacing array elements. @ 2016-10-13 04:26 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-10-13 04:26 UTC (permalink / raw) To: pgsql-committers Fix broken jsonb_set() logic for replacing array elements. Commit 0b62fd036 did a fairly sloppy job of refactoring setPath() to support jsonb_insert() along with jsonb_set(). In its defense, though, there was no regression test case exercising the case of replacing an existing element in a jsonb array. Per bug #14366 from Peng Sun. Back-patch to 9.6 where bug was introduced. Report: <20161012065349.1412.47858@wrigleys.postgresql.org> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/9c4cc9e2c75e84a8267396be5cccbfe25b8f63f6 Modified Files -------------- src/backend/utils/adt/jsonfuncs.c | 12 ++++++------ src/test/regress/expected/jsonb.out | 6 ++++++ src/test/regress/sql/jsonb.sql | 1 + 3 files changed, 13 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix broken jsonb_set() logic for replacing array elements. @ 2016-10-13 04:26 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-10-13 04:26 UTC (permalink / raw) To: pgsql-committers Fix broken jsonb_set() logic for replacing array elements. Commit 0b62fd036 did a fairly sloppy job of refactoring setPath() to support jsonb_insert() along with jsonb_set(). In its defense, though, there was no regression test case exercising the case of replacing an existing element in a jsonb array. Per bug #14366 from Peng Sun. Back-patch to 9.6 where bug was introduced. Report: <20161012065349.1412.47858@wrigleys.postgresql.org> Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0e9e64c07ed93fb2be4583adaea28205d3188a0e Modified Files -------------- src/backend/utils/adt/jsonfuncs.c | 12 ++++++------ src/test/regress/expected/jsonb.out | 6 ++++++ src/test/regress/sql/jsonb.sql | 1 + 3 files changed, 13 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-10-13 04:26 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-10-13 04:26 pgsql: Fix broken jsonb_set() logic for replacing array elements. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 04:26 pgsql: Fix broken jsonb_set() logic for replacing array elements. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox