forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaf1288e
committed
Defend against bad trigger definitions in contrib/lo's lo_manage() trigger.
This function formerly crashed if called as a statement-level trigger,or if a column-name argument wasn't given.In passing, add the trigger name to all error messages from the function.(None of them are expected cases, so this shouldn't pose any compatibilityrisk.)Marc Cousin, reviewed by Sawada Masahiko1 parentc4d3cd3 commitaf1288e
1 file changed
+12
-2
lines changedLines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 |
| |
45 | 50 |
| |
46 | 51 |
| |
| |||
50 | 55 |
| |
51 | 56 |
| |
52 | 57 |
| |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 |
| |
54 | 63 |
| |
55 | 64 |
| |
| |||
63 | 72 |
| |
64 | 73 |
| |
65 | 74 |
| |
66 |
| - | |
| 75 | + | |
| 76 | + | |
67 | 77 |
| |
68 | 78 |
| |
69 | 79 |
| |
|
0 commit comments
Comments
(0)