- Notifications
You must be signed in to change notification settings - Fork5
Commit920c826
committed
Improve the error message given for modifying a window with frame clause.
For rather inscrutable reasons, SQL:2008 disallows copying-and-modifying awindow definition that has any explicit framing clause. The error messagewe gave for this only made sense if the referencing window definitionitself contains an explicit framing clause, which it might well not.Moreover, in the context of an OVER clause it's not exactly obvious that"OVER (windowname)" implies copy-and-modify while "OVER windowname" doesnot. This has led to multiple complaints, eg bug #5199 from IliyaKrapchatov. Change to a hopefully more intelligible error message, andin the case where we have just "OVER (windowname)", add a HINT suggestingthat omitting the parentheses will fix it. Also improve the relateddocumentation. Back-patch to all supported branches.1 parentd4e6133 commit920c826
2 files changed
+45
-18
lines changedLines changed: 19 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1730 | 1730 |
| |
1731 | 1731 |
| |
1732 | 1732 |
| |
1733 |
| - | |
1734 | 1733 |
| |
1735 |
| - | |
| 1734 | + | |
1736 | 1735 |
| |
| 1736 | + | |
1737 | 1737 |
| |
1738 | 1738 |
| |
1739 | 1739 |
| |
| |||
1768 | 1768 |
| |
1769 | 1769 |
| |
1770 | 1770 |
| |
1771 |
| - | |
1772 |
| - | |
1773 |
| - | |
1774 |
| - | |
1775 |
| - | |
1776 |
| - | |
1777 |
| - | |
1778 |
| - | |
1779 |
| - | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1780 | 1779 |
| |
1781 | 1780 |
| |
1782 | 1781 |
| |
| |||
1853 | 1852 |
| |
1854 | 1853 |
| |
1855 | 1854 |
| |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1856 | 1863 |
| |
1857 | 1864 |
| |
1858 | 1865 |
| |
1859 | 1866 |
| |
1860 |
| - | |
1861 |
| - | |
| 1867 | + | |
1862 | 1868 |
| |
1863 | 1869 |
| |
1864 | 1870 |
| |
|
Lines changed: 26 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1735 | 1735 |
| |
1736 | 1736 |
| |
1737 | 1737 |
| |
1738 |
| - | |
| 1738 | + | |
1739 | 1739 |
| |
1740 |
| - | |
| 1740 | + | |
1741 | 1741 |
| |
1742 |
| - | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
1743 | 1748 |
| |
1744 | 1749 |
| |
1745 | 1750 |
| |
| |||
1778 | 1783 |
| |
1779 | 1784 |
| |
1780 | 1785 |
| |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1781 | 1800 |
| |
1782 | 1801 |
| |
1783 |
| - | |
1784 |
| - | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
1785 | 1805 |
| |
| 1806 | + | |
1786 | 1807 |
| |
1787 | 1808 |
| |
1788 | 1809 |
| |
|
0 commit comments
Comments
(0)