forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd0091e3
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".Per Alvaro's advice, back-patch to branches before 9.4, but resistthe temptation to rephrase any existing strings there. Adding newstrings is not really a translation degradation; anyway having theinfo presented in English is better than not having it at all.1 parentc6b3fb4 commitd0091e3
1 file changed
+28
-5
lines changedLines changed: 28 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
| 527 | + | |
527 | 528 |
| |
528 | 529 |
| |
529 | 530 |
| |
| |||
555 | 556 |
| |
556 | 557 |
| |
557 | 558 |
| |
| 559 | + | |
558 | 560 |
| |
559 | 561 |
| |
560 | 562 |
| |
561 |
| - | |
562 |
| - | |
563 |
| - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
564 | 571 |
| |
565 | 572 |
| |
566 | 573 |
| |
567 | 574 |
| |
568 | 575 |
| |
569 | 576 |
| |
570 |
| - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
571 | 585 |
| |
572 | 586 |
| |
573 | 587 |
| |
| |||
584 | 598 |
| |
585 | 599 |
| |
586 | 600 |
| |
587 |
| - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
588 | 611 |
| |
589 | 612 |
| |
590 | 613 |
| |
|
0 commit comments
Comments
(0)