- Notifications
You must be signed in to change notification settings - Fork5
Commitd2e17e1
committed
Fix mishandling of after-trigger state when a SQL function returns multiple
rows --- if the surrounding query queued any trigger events between the rows,the events would be fired at the wrong time, leading to bizarre behavior.Per report from Merlin Moncure.This is a simple patch that should solve the problem fully in the backbranches, but in HEAD we also need to consider the possibility of querieswith RETURNING clauses. Will look into a fix for that separately.1 parentb38900c commitd2e17e1
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 |
| - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
331 | 338 |
| |
332 | 339 |
| |
333 | 340 |
| |
| |||
401 | 408 |
| |
402 | 409 |
| |
403 | 410 |
| |
404 |
| - | |
| 411 | + | |
| 412 | + | |
405 | 413 |
| |
406 | 414 |
| |
407 | 415 |
| |
|
0 commit comments
Comments
(0)