forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0e9e64c
committed
Fix broken jsonb_set() logic for replacing array elements.
Commit0b62fd0 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 ofreplacing 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>1 parent490734c commit0e9e64c
File tree
3 files changed
+13
-6
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+13
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 | 37 |
| |
39 | 38 |
| |
40 |
| - | |
41 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| |||
3545 | 3545 |
| |
3546 | 3546 |
| |
3547 | 3547 |
| |
3548 |
| - | |
| 3548 | + | |
3549 | 3549 |
| |
3550 | 3550 |
| |
3551 | 3551 |
| |
| |||
4003 | 4003 |
| |
4004 | 4004 |
| |
4005 | 4005 |
| |
4006 |
| - | |
| 4006 | + | |
4007 | 4007 |
| |
4008 | 4008 |
| |
4009 | 4009 |
| |
| |||
4035 | 4035 |
| |
4036 | 4036 |
| |
4037 | 4037 |
| |
4038 |
| - | |
| 4038 | + | |
4039 | 4039 |
| |
4040 | 4040 |
| |
4041 | 4041 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3238 | 3238 |
| |
3239 | 3239 |
| |
3240 | 3240 |
| |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
3241 | 3247 |
| |
3242 | 3248 |
| |
3243 | 3249 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
| 817 | + | |
817 | 818 |
| |
818 | 819 |
| |
819 | 820 |
| |
|
0 commit comments
Comments
(0)