forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcec3be0
committed
Add some errdetail to checkRuleResultList().
This function wasn't originally thought to be really user-facing,because converting a table to a view isn't something we expect peopleto do manually. So not all that much effort was spent on the errormessages; in particular, while the code will complain that you gotthe column types wrong it won't say exactly what they are. But sincewe repurposed the code to also check compatibility of rule RETURNINGlists, it's definitely user-facing. It now seems worthwhile to adderrdetail messages showing exactly what the conflict is when there'sa mismatch of column names or types. This is prompted by bug #10836from Matthias Raffelsieper, which might have been forestalled if theerror message had reported the wrong column type as being "record".Back-patch to 9.4, but not into older branches where the set oftranslatable error strings is supposed to be stable.1 parent5520006 commitcec3be0
1 file changed
+28
-5
lines changedLines changed: 28 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
633 | 633 |
| |
634 | 634 |
| |
635 | 635 |
| |
| 636 | + | |
636 | 637 |
| |
637 | 638 |
| |
638 | 639 |
| |
| |||
664 | 665 |
| |
665 | 666 |
| |
666 | 667 |
| |
| 668 | + | |
667 | 669 |
| |
668 | 670 |
| |
669 | 671 |
| |
670 |
| - | |
671 |
| - | |
672 |
| - | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
673 | 680 |
| |
674 | 681 |
| |
675 | 682 |
| |
676 | 683 |
| |
677 | 684 |
| |
678 | 685 |
| |
679 |
| - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
680 | 694 |
| |
681 | 695 |
| |
682 | 696 |
| |
| |||
693 | 707 |
| |
694 | 708 |
| |
695 | 709 |
| |
696 |
| - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
697 | 720 |
| |
698 | 721 |
| |
699 | 722 |
| |
|
0 commit comments
Comments
(0)