Commit 3c000fd
committed
Fix two small bugs in json's populate_record_worker
The first bug is not releasing a tupdesc when doing an early return out
of the function. The second bug is a logic error in choosing when to do
an early return if given an empty jsonb object.
Bug reports from Pavel Stehule and Tom Lane respectively.
Backpatch to 9.4 where these were introduced.1 parent c90b85e commit 3c000fd
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
| 2118 | + | |
2118 | 2119 | | |
2119 | 2120 | | |
2120 | 2121 | | |
| |||
2123 | 2124 | | |
2124 | 2125 | | |
2125 | 2126 | | |
2126 | | - | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
2127 | 2130 | | |
| 2131 | + | |
2128 | 2132 | | |
2129 | 2133 | | |
2130 | 2134 | | |
| |||
0 commit comments