- Notifications
You must be signed in to change notification settings - Fork5
Commit1efd5ff
committed
Add a pg_encoding_mbcliplen() function that is just like pg_mbcliplen()
except the caller can specify the encoding to work in; this will be neededfor pg_stat_statements. In passing, do some marginal efficiency hackingand clean up some comments. Also, prevent the single-byte-encoding codepath from fetching one byte past the stated length of the string (thislast is a bug that might need to be back-patched at some point).1 parent74ef810 commit1efd5ff
2 files changed
+38
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
777 | 789 | | |
778 | 790 | | |
779 | 791 | | |
780 | 792 | | |
781 | | - | |
| 793 | + | |
782 | 794 | | |
783 | 795 | | |
| 796 | + | |
| 797 | + | |
784 | 798 | | |
785 | 799 | | |
786 | | - | |
| 800 | + | |
787 | 801 | | |
788 | 802 | | |
789 | 803 | | |
| |||
797 | 811 | | |
798 | 812 | | |
799 | 813 | | |
800 | | - | |
| 814 | + | |
| 815 | + | |
801 | 816 | | |
802 | 817 | | |
803 | 818 | | |
| |||
822 | 837 | | |
823 | 838 | | |
824 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
825 | 852 | | |
826 | 853 | | |
827 | 854 | | |
| |||
884 | 911 | | |
885 | 912 | | |
886 | 913 | | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
0 commit comments
Comments
(0)