- Notifications
You must be signed in to change notification settings - Fork28
Commiteba2ce1
committed
Fix another crash in json{b}_populate_recordset and json{b}_to_recordset.
populate_recordset_worker() failed to consider the possibility that thesupplied JSON data contains no rows, so that update_cached_tupdesc nevergot called. This led to a null-pointer dereference since commit9a5e8ed;before that it led to a bogus "set-valued function called in context thatcannot accept a set" error. Fix by forcing the update to happen.Per bug #15514. Back-patch to v11 as9a5e8ed was. (If we were excitedabout the bogus error, we could perhaps go back further, but it'd take morework to figure out how to fix it in older branches. Given the lack offield complaints about that aspect, I'm not excited.)Discussion:https://postgr.es/m/15514-59d5b4c4065b178b@postgresql.org1 parentfe375d3 commiteba2ce1
File tree
5 files changed
+42
-0
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
5 files changed
+42
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3658 | 3658 |
| |
3659 | 3659 |
| |
3660 | 3660 |
| |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
3661 | 3667 |
| |
3662 | 3668 |
| |
3663 | 3669 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1851 | 1851 |
| |
1852 | 1852 |
| |
1853 | 1853 |
| |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
1854 | 1867 |
| |
1855 | 1868 |
| |
1856 | 1869 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2533 | 2533 |
| |
2534 | 2534 |
| |
2535 | 2535 |
| |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2536 | 2549 |
| |
2537 | 2550 |
| |
2538 | 2551 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
550 | 550 |
| |
551 | 551 |
| |
552 | 552 |
| |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
553 | 558 |
| |
554 | 559 |
| |
555 | 560 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
666 | 666 |
| |
667 | 667 |
| |
668 | 668 |
| |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
669 | 674 |
| |
670 | 675 |
| |
671 | 676 |
| |
|
0 commit comments
Comments
(0)