forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit859b8dd
committed
Add a defense to prevent core dumps if 8.2 version of rank_cd() is used with
the 8.1 SQL function definition for it. Per report from Rajesh Kumar Mallah,such a DBA error doesn't seem at all improbable, and the cost of checking forit is not very high compared to the cost of running this function. (It wouldhave been better to change the C name of the function so it wouldn't be calledby the old SQL definition, but it's too late for that now in the 8.2 branch.)1 parent3a7f545 commit859b8dd
2 files changed
+19
-2
lines changedLines changed: 17 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
728 | 728 |
| |
729 | 729 |
| |
730 | 730 |
| |
731 |
| - | |
| 731 | + | |
732 | 732 |
| |
733 | 733 |
| |
734 | 734 |
| |
735 | 735 |
| |
736 | 736 |
| |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
737 | 753 |
| |
738 | 754 |
| |
739 | 755 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| 425 | + | |
425 | 426 |
| |
426 | 427 |
| |
427 | 428 |
| |
|
0 commit comments
Comments
(0)