forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2306696
committed
Fix oversight in getParamDescriptions(), and improve comments.
When getParamDescriptions was changed to handle out-of-memory betterby cribbing error recovery logic from getRowDescriptions/getAnotherTuple,somebody omitted to copy the stanza about checking for excess data inthe message. But you need to do that, since continue'ing out of theswitch in pqParseInput3 means no such check gets applied there anymore.Noted while looking at Michael Paquier's patch that made yet anothercopy of this advance_and_error logic.(This whole business desperately needs refactoring, because I sure don'twant to see a dozen copies of this code, but that's where we seem to beheaded. What's more, the "suspend parsing on EOF return" convention is aholdover from protocol 2 and shouldn't exist at all in protocol 3, becausewe don't process partial messages anymore. But for now, just fix theobvious bug.)Also, fix some wrong/missing comments about what the API spec isfor these three functions.This doesn't seem worthy of back-patching, even though it's a bug;the case shouldn't ever arise in the field.1 parenta361c22 commit2306696
1 file changed
+16
-3
lines changedLines changed: 16 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
467 | 467 |
| |
468 | 468 |
| |
469 | 469 |
| |
470 |
| - | |
| 470 | + | |
471 | 471 |
| |
472 | 472 |
| |
473 | 473 |
| |
| |||
641 | 641 |
| |
642 | 642 |
| |
643 | 643 |
| |
| 644 | + | |
644 | 645 |
| |
645 | 646 |
| |
646 | 647 |
| |
| |||
650 | 651 |
| |
651 | 652 |
| |
652 | 653 |
| |
| 654 | + | |
653 | 655 |
| |
654 | 656 |
| |
655 |
| - | |
656 | 657 |
| |
657 | 658 |
| |
658 | 659 |
| |
| |||
684 | 685 |
| |
685 | 686 |
| |
686 | 687 |
| |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
687 | 695 |
| |
688 | 696 |
| |
689 | 697 |
| |
| |||
721 | 729 |
| |
722 | 730 |
| |
723 | 731 |
| |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
724 | 737 |
| |
725 | 738 |
| |
726 | 739 |
| |
| |||
729 | 742 |
| |
730 | 743 |
| |
731 | 744 |
| |
732 |
| - | |
| 745 | + | |
733 | 746 |
| |
734 | 747 |
| |
735 | 748 |
| |
|
0 commit comments
Comments
(0)