- Notifications
You must be signed in to change notification settings - Fork5
Commit486ea0b
committed
Fix crash in json_to_record().
json_to_record() depends on get_call_result_type() for the tupledescriptor of the record that should be returned, but in some casesthat cannot be determined. Add a guard to check if the tupledescriptor has been properly resolved, similar to other callers ofget_call_result_type().Also add guard for two other callers of get_call_result_type() injsonfuncs.c. Although json_to_record() is the only actual bug, it's agood idea to follow convention.1 parentfccebe4 commit486ea0b
1 file changed
+17
-3
lines changedLines changed: 17 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
941 | 941 |
| |
942 | 942 |
| |
943 | 943 |
| |
944 |
| - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
945 | 949 |
| |
946 | 950 |
| |
947 | 951 |
| |
| |||
1349 | 1353 |
| |
1350 | 1354 |
| |
1351 | 1355 |
| |
1352 |
| - | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1353 | 1363 |
| |
1354 | 1364 |
| |
1355 | 1365 |
| |
| |||
1713 | 1723 |
| |
1714 | 1724 |
| |
1715 | 1725 |
| |
1716 |
| - | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1717 | 1731 |
| |
1718 | 1732 |
| |
1719 | 1733 |
| |
|
0 commit comments
Comments
(0)