forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit94077df
committed
Avoid casting away const in sepgsql's quote_object_name.
quote_identifier's API is designed on the assumption that it'snot worth worrying about a short-term memory leak when we haveto produce a quoted version of the given identifier. Whoever wrotequote_object_name took it on themselves to override that judgment,but the only way to do so is to cast away const someplace. We canavoid that and substantially shorten the function by going alongwith quote_identifier's opinion. AFAICS quote_object_name is notused in any way where this would be unsustainable.Per discussion of commit45987aa, which exposed that we hada casting-away-const situation here.Discussion:https://postgr.es/m/20220827112304.GL2342@telsasoft.com1 parentd1ce745 commit94077df
1 file changed
+6
-27
lines changedLines changed: 6 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
646 | 646 |
| |
647 | 647 |
| |
648 | 648 |
| |
649 |
| - | |
| 649 | + | |
| 650 | + | |
650 | 651 |
| |
651 | 652 |
| |
652 | 653 |
| |
653 | 654 |
| |
654 | 655 |
| |
655 | 656 |
| |
656 |
| - | |
657 | 657 |
| |
658 | 658 |
| |
659 |
| - | |
660 | 659 |
| |
661 |
| - | |
662 |
| - | |
663 |
| - | |
664 |
| - | |
665 |
| - | |
666 |
| - | |
| 660 | + | |
667 | 661 |
| |
668 |
| - | |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
| 662 | + | |
674 | 663 |
| |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 |
| - | |
| 664 | + | |
681 | 665 |
| |
682 |
| - | |
683 |
| - | |
684 |
| - | |
685 |
| - | |
686 |
| - | |
687 |
| - | |
| 666 | + | |
688 | 667 |
| |
689 | 668 |
| |
690 | 669 |
| |
|
0 commit comments
Comments
(0)