forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf26c06a
committed
Fix error-cleanup mistakes in exec_stmt_call().
Commit15c7293 was a couple bricks shy of a load: we need toensure that expr->plan gets reset to NULL on any error exit,if it's not supposed to be saved. Also ensure that thestmt->target calculation gets redone if needed.The easy way to exhibit a problem is to set up code thatviolates the writable-argument restriction and then executeit twice. But error exits out of, eg, setup_param_list()could also break it. Make the existing PG_TRY block coverall of that code to be sure.Per report from Pavel Stehule.Discussion:https://postgr.es/m/CAFj8pRAeXNTO43W2Y0Cn0YOVFPv1WpYyOqQrrzUiN6s=dn7gCg@mail.gmail.com1 parentfa2952d commitf26c06a
1 file changed
+45
-37
lines changedLines changed: 45 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2072 | 2072 |
| |
2073 | 2073 |
| |
2074 | 2074 |
| |
2075 |
| - | |
2076 |
| - | |
| 2075 | + | |
2077 | 2076 |
| |
2078 |
| - | |
2079 |
| - | |
| 2077 | + | |
| 2078 | + | |
2080 | 2079 |
| |
2081 |
| - | |
| 2080 | + | |
| 2081 | + | |
2082 | 2082 |
| |
2083 |
| - | |
| 2083 | + | |
| 2084 | + | |
2084 | 2085 |
| |
2085 |
| - | |
2086 |
| - | |
2087 |
| - | |
2088 |
| - | |
2089 |
| - | |
2090 |
| - | |
2091 |
| - | |
| 2086 | + | |
| 2087 | + | |
2092 | 2088 |
| |
2093 |
| - | |
2094 |
| - | |
2095 |
| - | |
2096 |
| - | |
2097 |
| - | |
2098 |
| - | |
2099 |
| - | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2100 | 2112 |
| |
2101 | 2113 |
| |
2102 | 2114 |
| |
2103 | 2115 |
| |
2104 |
| - | |
2105 |
| - | |
| 2116 | + | |
2106 | 2117 |
| |
2107 |
| - | |
| 2118 | + | |
2108 | 2119 |
| |
2109 | 2120 |
| |
2110 | 2121 |
| |
| |||
2206 | 2217 |
| |
2207 | 2218 |
| |
2208 | 2219 |
| |
2209 |
| - | |
2210 | 2220 |
| |
2211 |
| - | |
| 2221 | + | |
2212 | 2222 |
| |
2213 |
| - | |
| 2223 | + | |
2214 | 2224 |
| |
2215 |
| - | |
2216 |
| - | |
2217 |
| - | |
2218 |
| - | |
2219 |
| - | |
2220 |
| - | |
2221 |
| - | |
2222 |
| - | |
2223 |
| - | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
2224 | 2234 |
| |
2225 |
| - | |
2226 |
| - | |
2227 | 2235 |
| |
2228 | 2236 |
| |
2229 | 2237 |
| |
|
0 commit comments
Comments
(0)