forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3c24b08
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 parente348043 commit3c24b08
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2500 | 2500 |
| |
2501 | 2501 |
| |
2502 | 2502 |
| |
2503 |
| - | |
| 2503 | + | |
| 2504 | + | |
2504 | 2505 |
| |
2505 | 2506 |
| |
2506 | 2507 |
| |
2507 |
| - | |
2508 |
| - | |
2509 |
| - | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
2510 | 2513 |
| |
2511 | 2514 |
| |
2512 | 2515 |
| |
| 2516 | + | |
2513 | 2517 |
| |
2514 |
| - | |
| 2518 | + | |
2515 | 2519 |
| |
2516 | 2520 |
| |
2517 | 2521 |
| |
|
0 commit comments
Comments
(0)