forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0101f77
committed
Fix a bug in roles_is_member_of.
Commite3ce2de rearranged thisfunction to be able to identify which inherited role had admin optionon the target role, but it got the order of operations wrong, causingthe function to return wrong answers in the presence of non-inheritedgrants.Fix that, and add a test case that verifies the correct behavior.Patch by me, reviewed by Nathan BossartDiscussion:http://postgr.es/m/CA+TgmoYamnu-xt-u7CqjYWnRiJ6BQaSpYOHXP=r4QGTfd1N_EA@mail.gmail.com1 parentc7892c2 commit0101f77
File tree
3 files changed
+61
-4
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+61
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4852 | 4852 |
| |
4853 | 4853 |
| |
4854 | 4854 |
| |
4855 |
| - | |
4856 |
| - | |
4857 |
| - | |
4858 |
| - | |
4859 | 4855 |
| |
4860 | 4856 |
| |
4861 | 4857 |
| |
| |||
4864 | 4860 |
| |
4865 | 4861 |
| |
4866 | 4862 |
| |
| 4863 | + | |
| 4864 | + | |
| 4865 | + | |
| 4866 | + | |
4867 | 4867 |
| |
4868 | 4868 |
| |
4869 | 4869 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2777 | 2777 |
| |
2778 | 2778 |
| |
2779 | 2779 |
| |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + |
Lines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1788 | 1788 |
| |
1789 | 1789 |
| |
1790 | 1790 |
| |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + |
0 commit comments
Comments
(0)