Repository navigation
Commit 75da0d7
PGSQL: Allow unconditional selection in pg_select
Previously, pg_select did not allow unconditional selection, where an
empty ids array would result in a function failure.
This patch implements two changes:
- Make the ids array an optional parameter.
- Allow the ids array to be empty.
In both cases, unconditional selection happen, which is equivalent to
pg_query('SELECT * FROM <table>;').
Two test cases were added to test the aforementioned changes.
Close GH-53321 parent 009d48d commit 75da0d7
5 files changed
Lines changed: 69 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5777 | 5777 | | |
5778 | 5778 | | |
5779 | 5779 | | |
5780 | | - | |
| 5780 | + | |
| 5781 | + | |
| 5782 | + | |
5781 | 5783 | | |
5782 | 5784 | | |
5783 | 5785 | | |
5784 | | - | |
5785 | | - | |
5786 | | - | |
| 5786 | + | |
5787 | 5787 | | |
5788 | | - | |
5789 | | - | |
5790 | | - | |
5791 | | - | |
5792 | | - | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
| 5794 | + | |
| 5795 | + | |
5793 | 5796 | | |
5794 | | - | |
5795 | 5797 | | |
5796 | 5798 | | |
5797 | 5799 | | |
5798 | 5800 | | |
5799 | | - | |
5800 | 5801 | | |
5801 | | - | |
5802 | | - | |
| 5802 | + | |
| 5803 | + | |
| 5804 | + | |
| 5805 | + | |
| 5806 | + | |
| 5807 | + | |
5803 | 5808 | | |
5804 | 5809 | | |
5805 | 5810 | | |
| |||
5814 | 5819 | | |
5815 | 5820 | | |
5816 | 5821 | | |
5817 | | - | |
| 5822 | + | |
| 5823 | + | |
| 5824 | + | |
5818 | 5825 | | |
5819 | 5826 | | |
5820 | 5827 | | |
| |||
5828 | 5835 | | |
5829 | 5836 | | |
5830 | 5837 | | |
5831 | | - | |
| 5838 | + | |
| 5839 | + | |
5832 | 5840 | | |
5833 | 5841 | | |
5834 | 5842 | | |
| |||
5837 | 5845 | | |
5838 | 5846 | | |
5839 | 5847 | | |
5840 | | - | |
| 5848 | + | |
5841 | 5849 | | |
5842 | 5850 | | |
5843 | 5851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
| 964 | + | |
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments