- Notifications
You must be signed in to change notification settings - Fork5
Commitdbdf967
committed
Use correct text domain for translating errcontext() messages.
errcontext() is typically used in an error context callback function, notwithin an ereport() invocation like e.g errmsg and errdetail are. That meansthat the message domain that the TEXTDOMAIN magic in ereport() determinesis not the right one for the errcontext() calls. The message domain needs tobe determined by the C file containing the errcontext() call, not the filecontaining the ereport() call.Fix by turning errcontext() into a macro that passes the TEXTDOMAIN to usefor the errcontext message. "errcontext" was used in a few places as avariable or struct field name, I had to rename those out of the way, nowthat errcontext is a macro.We've had this problem all along, but this isn't doesn't seem worthbackporting. It's a fairly minor issue, and turning errcontext from afunction to a macro requires at least a recompile of any external code thatcalls errcontext().1 parentc9d44a7 commitdbdf967
File tree
7 files changed
+82
-48
lines changed- src
- backend
- access/transam
- commands
- parser
- storage/buffer
- utils/error
- include
- parser
- utils
7 files changed
+82
-48
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5698 | 5698 |
| |
5699 | 5699 |
| |
5700 | 5700 |
| |
5701 |
| - | |
| 5701 | + | |
5702 | 5702 |
| |
5703 | 5703 |
| |
5704 | 5704 |
| |
| |||
5760 | 5760 |
| |
5761 | 5761 |
| |
5762 | 5762 |
| |
5763 |
| - | |
5764 |
| - | |
5765 |
| - | |
5766 |
| - | |
| 5763 | + | |
| 5764 | + | |
| 5765 | + | |
| 5766 | + | |
5767 | 5767 |
| |
5768 | 5768 |
| |
5769 | 5769 |
| |
| |||
5808 | 5808 |
| |
5809 | 5809 |
| |
5810 | 5810 |
| |
5811 |
| - | |
| 5811 | + | |
5812 | 5812 |
| |
5813 | 5813 |
| |
5814 | 5814 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1901 | 1901 |
| |
1902 | 1902 |
| |
1903 | 1903 |
| |
1904 |
| - | |
| 1904 | + | |
1905 | 1905 |
| |
1906 | 1906 |
| |
1907 | 1907 |
| |
| |||
2046 | 2046 |
| |
2047 | 2047 |
| |
2048 | 2048 |
| |
2049 |
| - | |
2050 |
| - | |
2051 |
| - | |
2052 |
| - | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
2053 | 2053 |
| |
2054 | 2054 |
| |
2055 | 2055 |
| |
| |||
2164 | 2164 |
| |
2165 | 2165 |
| |
2166 | 2166 |
| |
2167 |
| - | |
| 2167 | + | |
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 | 2170 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
| 161 | + | |
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1888 | 1888 |
| |
1889 | 1889 |
| |
1890 | 1890 |
| |
1891 |
| - | |
| 1891 | + | |
1892 | 1892 |
| |
1893 | 1893 |
| |
1894 | 1894 |
| |
| |||
1901 | 1901 |
| |
1902 | 1902 |
| |
1903 | 1903 |
| |
1904 |
| - | |
1905 |
| - | |
1906 |
| - | |
1907 |
| - | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
1908 | 1908 |
| |
1909 | 1909 |
| |
1910 | 1910 |
| |
| |||
1967 | 1967 |
| |
1968 | 1968 |
| |
1969 | 1969 |
| |
1970 |
| - | |
| 1970 | + | |
1971 | 1971 |
| |
1972 | 1972 |
| |
1973 | 1973 |
| |
| |||
2253 | 2253 |
| |
2254 | 2254 |
| |
2255 | 2255 |
| |
2256 |
| - | |
| 2256 | + | |
2257 | 2257 |
| |
2258 | 2258 |
| |
2259 |
| - | |
2260 |
| - | |
2261 |
| - | |
2262 |
| - | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
2263 | 2263 |
| |
2264 | 2264 |
| |
2265 | 2265 |
| |
| |||
2270 | 2270 |
| |
2271 | 2271 |
| |
2272 | 2272 |
| |
2273 |
| - | |
| 2273 | + | |
2274 | 2274 |
| |
2275 | 2275 |
| |
2276 | 2276 |
| |
|
Lines changed: 39 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
686 |
| - | |
| 686 | + | |
687 | 687 |
| |
688 | 688 |
| |
689 | 689 |
| |
690 | 690 |
| |
691 | 691 |
| |
692 |
| - | |
| 692 | + | |
693 | 693 |
| |
694 | 694 |
| |
695 | 695 |
| |
| |||
723 | 723 |
| |
724 | 724 |
| |
725 | 725 |
| |
726 |
| - | |
| 726 | + | |
727 | 727 |
| |
728 | 728 |
| |
729 | 729 |
| |
730 | 730 |
| |
731 | 731 |
| |
732 | 732 |
| |
733 |
| - | |
| 733 | + | |
734 | 734 |
| |
735 | 735 |
| |
736 | 736 |
| |
| |||
781 | 781 |
| |
782 | 782 |
| |
783 | 783 |
| |
784 |
| - | |
| 784 | + | |
785 | 785 |
| |
786 | 786 |
| |
787 | 787 |
| |
| |||
810 | 810 |
| |
811 | 811 |
| |
812 | 812 |
| |
813 |
| - | |
| 813 | + | |
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
| |||
833 | 833 |
| |
834 | 834 |
| |
835 | 835 |
| |
836 |
| - | |
| 836 | + | |
837 | 837 |
| |
838 | 838 |
| |
839 | 839 |
| |
| |||
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
857 |
| - | |
| 857 | + | |
858 | 858 |
| |
859 | 859 |
| |
860 | 860 |
| |
| |||
881 | 881 |
| |
882 | 882 |
| |
883 | 883 |
| |
884 |
| - | |
| 884 | + | |
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
| |||
902 | 902 |
| |
903 | 903 |
| |
904 | 904 |
| |
905 |
| - | |
| 905 | + | |
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
| |||
925 | 925 |
| |
926 | 926 |
| |
927 | 927 |
| |
928 |
| - | |
| 928 | + | |
929 | 929 |
| |
930 | 930 |
| |
931 | 931 |
| |
| |||
946 | 946 |
| |
947 | 947 |
| |
948 | 948 |
| |
949 |
| - | |
| 949 | + | |
950 | 950 |
| |
951 | 951 |
| |
952 | 952 |
| |
| |||
955 | 955 |
| |
956 | 956 |
| |
957 | 957 |
| |
958 |
| - | |
| 958 | + | |
959 | 959 |
| |
960 | 960 |
| |
961 | 961 |
| |
962 | 962 |
| |
963 | 963 |
| |
964 | 964 |
| |
965 |
| - | |
| 965 | + | |
966 | 966 |
| |
967 | 967 |
| |
968 | 968 |
| |
| |||
971 | 971 |
| |
972 | 972 |
| |
973 | 973 |
| |
974 |
| - | |
| 974 | + | |
975 | 975 |
| |
976 | 976 |
| |
977 | 977 |
| |
978 | 978 |
| |
979 | 979 |
| |
980 | 980 |
| |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
981 | 1003 |
| |
982 | 1004 |
| |
983 | 1005 |
| |
| |||
1201 | 1223 |
| |
1202 | 1224 |
| |
1203 | 1225 |
| |
1204 |
| - | |
| 1226 | + | |
1205 | 1227 |
| |
1206 | 1228 |
| |
1207 | 1229 |
| |
| |||
1260 | 1282 |
| |
1261 | 1283 |
| |
1262 | 1284 |
| |
1263 |
| - | |
| 1285 | + | |
1264 | 1286 |
| |
1265 | 1287 |
| |
1266 | 1288 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
209 |
| - | |
| 209 | + | |
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
180 | 191 |
| |
181 |
| - | |
| 192 | + | |
182 | 193 |
| |
183 | 194 |
| |
184 | 195 |
| |
| |||
320 | 331 |
| |
321 | 332 |
| |
322 | 333 |
| |
| 334 | + | |
323 | 335 |
| |
324 | 336 |
| |
325 | 337 |
| |
|
0 commit comments
Comments
(0)