forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit733e49e
committed
Fix subtly-wrong volatility checking in BeginCopyFrom().
contain_volatile_functions() is best applied to the output ofexpression_planner(), not its input, so that insertion of functiondefault arguments and constant-folding have been done. (See commentsat CheckMutability, for instance.) It's perhaps unlikely that anyonewill notice a difference in practice, but still we should do it properly.In passing, change variable type from Node* to Expr* to reduce the netnumber of casts needed.Noted while perusing uses of contain_volatile_functions().1 parent64f5962 commit733e49e
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2321 | 2321 |
| |
2322 | 2322 |
| |
2323 | 2323 |
| |
2324 |
| - | |
| 2324 | + | |
| 2325 | + | |
2325 | 2326 |
| |
2326 | 2327 |
| |
2327 | 2328 |
| |
2328 |
| - | |
2329 |
| - | |
2330 |
| - | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
2331 | 2334 |
| |
2332 | 2335 |
| |
2333 | 2336 |
| |
| 2337 | + | |
2334 | 2338 |
| |
2335 |
| - | |
| 2339 | + | |
2336 | 2340 |
| |
2337 | 2341 |
| |
2338 | 2342 |
| |
|
0 commit comments
Comments
(0)