pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Disallow invalid path elements in jsonb_set
2+ messages / 1 participants
[nested] [flat]

* pgsql: Disallow invalid path elements in jsonb_set
@ 2015-10-04 17:48 Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Dunstan @ 2015-10-04 17:48 UTC (permalink / raw)
  To: pgsql-committers

Disallow invalid path elements in jsonb_set

Null path elements and, where the object is an array, invalid integer
elements now cause an error.

Incorrect behaviour noted by Thom Brown, patch from Dmitry Dolgov.

Backpatch to 9.5 where jsonb_set was introduced

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1edd4ec831458e10b524d1473a7de5791aa8753e

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c     |    5 ++++-
src/test/regress/expected/jsonb.out   |   24 +++++++++---------------
src/test/regress/expected/jsonb_1.out |   24 +++++++++---------------
src/test/regress/sql/jsonb.sql        |    3 +++
4 files changed, 25 insertions(+), 31 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: Disallow invalid path elements in jsonb_set
@ 2015-10-04 17:48 Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Dunstan @ 2015-10-04 17:48 UTC (permalink / raw)
  To: pgsql-committers

Disallow invalid path elements in jsonb_set

Null path elements and, where the object is an array, invalid integer
elements now cause an error.

Incorrect behaviour noted by Thom Brown, patch from Dmitry Dolgov.

Backpatch to 9.5 where jsonb_set was introduced

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/544ccf644288132f805260c4eb9fd12029c5cf8c

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c     |    5 ++++-
src/test/regress/expected/jsonb.out   |   24 +++++++++---------------
src/test/regress/expected/jsonb_1.out |   24 +++++++++---------------
src/test/regress/sql/jsonb.sql        |    3 +++
4 files changed, 25 insertions(+), 31 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:[~2015-10-04 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-10-04 17:48 pgsql: Disallow invalid path elements in jsonb_set Andrew Dunstan <andrew@dunslane.net>
2015-10-04 17:48 pgsql: Disallow invalid path elements in jsonb_set Andrew Dunstan <andrew@dunslane.net>

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