forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita72dd7a
committed
Okay, I've had it with answering newbie questions about why plpgsql
FOR loops are giving weird syntax errors. Restructure parsing of FORloops so that the integer-loop-vs-query-loop decision is driven offthe presence of '..' between IN and LOOP, rather than the presenceof a matching record/row variable name. Hopefully this will make thebehavior a bit more transparent.1 parentf5c798e commita72dd7a
2 files changed
+220
-139
lines changedLines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
1769 | 1769 |
| |
1770 | 1770 |
| |
1771 | 1771 |
| |
1772 |
| - | |
| 1772 | + | |
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 | 1775 |
| |
| |||
1788 | 1788 |
| |
1789 | 1789 |
| |
1790 | 1790 |
| |
1791 |
| - | |
1792 |
| - | |
1793 |
| - | |
1794 |
| - | |
1795 |
| - | |
1796 |
| - | |
1797 |
| - | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
1798 | 1797 |
| |
1799 | 1798 |
| |
1800 | 1799 |
| |
|
0 commit comments
Comments
(0)