forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55965eb
committed
Improve error message for rejecting RETURNING clauses with dropped columns.
This error message was written with only ON SELECT rules in mind, but sincethen we also made RETURNING-clause targetlists go through the same logic.This means that you got a rather off-topic error message if you tried toadd a rule with RETURNING to a table having dropped columns. Ideally we'djust support that, but some preliminary investigation says that it might bea significant amount of work. Seeing that Nicklas Avén's complaint is thefirst one we've gotten about this in the ten years or so that the code'sbeen like that, I'm unwilling to put much time into it. Instead, improvethe error report by issuing a different message for RETURNING cases, andrevise the associated comment based on this investigation.Discussion: 1456176604.17219.9.camel@jordogskog.no1 parent0bd51de commit55965eb
1 file changed
+19
-7
lines changedLines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
654 | 654 |
| |
655 | 655 |
| |
656 | 656 |
| |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
663 | 673 |
| |
664 | 674 |
| |
665 | 675 |
| |
666 | 676 |
| |
667 |
| - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
668 | 680 |
| |
669 | 681 |
| |
670 | 682 |
| |
|
0 commit comments
Comments
(0)