forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita54d3fb
committed
Fix plpgsql to not lookup block labels except in contexts where a block label
is sane (eg, EXIT argument or first part of a qualified identifier), and causemore-closely-nested record variables to take precedence over outer blocklabels. This cures the breakage exhibited by Marko Kreen that 8.3 no longerallowed a function's name to be used for a variable within the function, andmakes plpgsql's handling of block labels more like Oracle's. It's importantto fix this now because we are documenting the use of block labels as variablequalifiers for the first time in 8.3.1 parent42fd80d commita54d3fb
4 files changed
+190
-179
lines changedLines changed: 30 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| |||
214 | 215 |
| |
215 | 216 |
| |
216 | 217 |
| |
217 |
| - | |
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
| |||
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
508 |
| - | |
| 508 | + | |
| 509 | + | |
509 | 510 |
| |
510 | 511 |
| |
511 | 512 |
| |
| |||
1642 | 1643 |
| |
1643 | 1644 |
| |
1644 | 1645 |
| |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
1645 | 1649 |
| |
1646 | 1650 |
| |
1647 | 1651 |
| |
1648 | 1652 |
| |
1649 |
| - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
1650 | 1658 |
| |
1651 |
| - | |
1652 |
| - | |
1653 |
| - | |
| 1659 | + | |
1654 | 1660 |
| |
1655 |
| - | |
| 1661 | + | |
1656 | 1662 |
| |
1657 |
| - | |
1658 |
| - | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1659 | 1668 |
| |
1660 | 1669 |
| |
1661 | 1670 |
| |
| |||
2484 | 2493 |
| |
2485 | 2494 |
| |
2486 | 2495 |
| |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
2487 | 2507 |
| |
2488 | 2508 |
| |
2489 | 2509 |
| |
|
0 commit comments
Comments
(0)