forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitce90f07
committed
Improve the error message for an inappropriate column definition list.
The existing message about "a column definition list is only allowed forfunctions returning "record"" could be given in some cases where it wasfairly confusing; in particular, a function with multiple OUT parameters*does* return record according to pg_proc. Break it down into a couplemore cases to deliver a more on-point complaint. Per complaint fromBruce Momjian.Discussion:https://postgr.es/m/798909.1600562993@sss.pgh.pa.us1 parentf859c2f commitce90f07
File tree
3 files changed
+55
-7
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+55
-7
lines changedLines changed: 37 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1737 | 1737 |
| |
1738 | 1738 |
| |
1739 | 1739 |
| |
1740 |
| - | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
1741 | 1743 |
| |
1742 | 1744 |
| |
1743 | 1745 |
| |
1744 |
| - | |
1745 |
| - | |
1746 |
| - | |
1747 |
| - | |
1748 |
| - | |
1749 |
| - | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1750 | 1780 |
| |
1751 | 1781 |
| |
1752 | 1782 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2109 | 2109 |
| |
2110 | 2110 |
| |
2111 | 2111 |
| |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
2112 | 2125 |
| |
2113 | 2126 |
| |
2114 | 2127 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
629 | 629 |
| |
630 | 630 |
| |
631 | 631 |
| |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
632 | 637 |
| |
633 | 638 |
| |
634 | 639 |
| |
|
0 commit comments
Comments
(0)