forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9200723
committed
Improve error reporting from validate_exec().
validate_exec() didn't guarantee to set errno to something appropriateafter a failure, leading to callers not being able to print an on-pointmessage. Improve that.Noted by Kyotaro Horiguchi, though this isn't exactly his proposal.Discussion:https://postgr.es/m/20220615.131403.1791191615590453058.horikyota.ntt@gmail.com1 parent7652353 commit9200723
2 files changed
+16
-11
lines changedLines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
423 | 423 |
| |
424 | 424 |
| |
425 | 425 |
| |
426 |
| - | |
427 | 426 |
| |
428 | 427 |
| |
429 | 428 |
| |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
| 429 | + | |
| 430 | + | |
438 | 431 |
| |
439 | 432 |
| |
440 | 433 |
| |
|
Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| 77 | + | |
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
| |||
105 | 106 |
| |
106 | 107 |
| |
107 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 |
| |
| 118 | + | |
109 | 119 |
| |
110 | 120 |
| |
111 | 121 |
| |
| |||
114 | 124 |
| |
115 | 125 |
| |
116 | 126 |
| |
| 127 | + | |
117 | 128 |
| |
118 | 129 |
| |
119 | 130 |
| |
| 131 | + | |
120 | 132 |
| |
121 | 133 |
| |
122 | 134 |
| |
| |||
165 | 177 |
| |
166 | 178 |
| |
167 | 179 |
| |
168 |
| - | |
| 180 | + | |
169 | 181 |
| |
170 | 182 |
| |
171 | 183 |
| |
| |||
215 | 227 |
| |
216 | 228 |
| |
217 | 229 |
| |
218 |
| - | |
| 230 | + | |
219 | 231 |
| |
220 | 232 |
| |
221 | 233 |
| |
|
0 commit comments
Comments
(0)