forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb3b10c3
committed
Fix error handling in PLy_spi_execute_fetch_result().
If an error is thrown out of the datatype I/O functions called by thisfunction, we need to do subtransaction cleanup, which the previous codingentirely failed to do. Fortunately, both existing callers of this functionalready have proper cleanup logic, so re-throwing the exception is enough.Also, postpone creation of the resultset tupdesc until after the I/Oconversions are complete, so that we won't leak memory in TopMemoryContextwhen such an error happens.1 parentff41a5d commitb3b10c3
1 file changed
+15
-15
lines changedLines changed: 15 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 |
| - | |
417 |
| - | |
418 |
| - | |
419 |
| - | |
420 | 410 |
| |
421 | 411 |
| |
422 | 412 |
| |
| |||
425 | 415 |
| |
426 | 416 |
| |
427 | 417 |
| |
428 |
| - | |
| 418 | + | |
| 419 | + | |
429 | 420 |
| |
430 | 421 |
| |
431 | 422 |
| |
432 | 423 |
| |
433 | 424 |
| |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
434 | 437 |
| |
435 | 438 |
| |
436 | 439 |
| |
437 | 440 |
| |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 | 441 |
| |
442 | 442 |
| |
443 | 443 |
| |
444 |
| - | |
| 444 | + | |
445 | 445 |
| |
446 | 446 |
| |
447 | 447 |
| |
|
0 commit comments
Comments
(0)