forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit92459e7
committed
Fix translatability markings in psql, and add defenses against future bugs.
Several previous commits have added columns to various \d queries withoutupdating their translate_columns[] arrays, leading to potentially incorrecttranslations in NLS-enabled builds. Offenders include commit8936867(added prosecdef to \df+),c9ac00e (added description to \dc+) and3b17efd (added description to \dC+). Fix those cases back to 9.3 or9.2 as appropriate.Since this is evidently more easily missed than one would like, in HEADalso add an Assert that the supplied array is long enough. This requiresan API change for printQuery(), so it seems inappropriate for backbranches, but presumably all future changes will be tested in HEAD anyway.In HEAD and 9.3, also clean up a whole lot of sloppiness in the emittedSQL for \dy (event triggers): lack of translatability due to failing topass words-to-be-translated through gettext_noop(), inadequate schemaqualification, and sloppy formatting resulting in unnecessarily ugly-E output.Peter Eisentraut and Tom Lane, per bug #8702 from Sergey Burladyan1 parent5858cf8 commit92459e7
File tree
5 files changed
+39
-14
lines changed- src/bin
- psql
- scripts
5 files changed
+39
-14
lines changedLines changed: 30 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 |
| - | |
| 227 | + | |
228 | 228 |
| |
229 | 229 |
| |
230 | 230 |
| |
| |||
457 | 457 |
| |
458 | 458 |
| |
459 | 459 |
| |
| 460 | + | |
460 | 461 |
| |
461 | 462 |
| |
462 | 463 |
| |
| |||
789 | 790 |
| |
790 | 791 |
| |
791 | 792 |
| |
| 793 | + | |
792 | 794 |
| |
793 | 795 |
| |
794 | 796 |
| |
| |||
862 | 864 |
| |
863 | 865 |
| |
864 | 866 |
| |
| 867 | + | |
865 | 868 |
| |
866 | 869 |
| |
867 | 870 |
| |
| |||
1034 | 1037 |
| |
1035 | 1038 |
| |
1036 | 1039 |
| |
| 1040 | + | |
1037 | 1041 |
| |
1038 | 1042 |
| |
1039 | 1043 |
| |
| |||
2818 | 2822 |
| |
2819 | 2823 |
| |
2820 | 2824 |
| |
| 2825 | + | |
2821 | 2826 |
| |
2822 | 2827 |
| |
2823 | 2828 |
| |
| |||
2999 | 3004 |
| |
3000 | 3005 |
| |
3001 | 3006 |
| |
3002 |
| - | |
| 3007 | + | |
| 3008 | + | |
3003 | 3009 |
| |
3004 | 3010 |
| |
3005 | 3011 |
| |
| |||
3055 | 3061 |
| |
3056 | 3062 |
| |
3057 | 3063 |
| |
| 3064 | + | |
3058 | 3065 |
| |
3059 | 3066 |
| |
3060 | 3067 |
| |
| |||
3079 | 3086 |
| |
3080 | 3087 |
| |
3081 | 3088 |
| |
3082 |
| - | |
3083 |
| - | |
3084 |
| - | |
3085 |
| - | |
3086 |
| - | |
3087 |
| - | |
3088 |
| - | |
3089 |
| - | |
3090 |
| - | |
3091 |
| - | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
3092 | 3099 |
| |
3093 | 3100 |
| |
3094 | 3101 |
| |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
3095 | 3106 |
| |
3096 | 3107 |
| |
3097 | 3108 |
| |
| |||
3100 | 3111 |
| |
3101 | 3112 |
| |
3102 | 3113 |
| |
3103 |
| - | |
| 3114 | + | |
3104 | 3115 |
| |
3105 | 3116 |
| |
3106 | 3117 |
| |
| |||
3116 | 3127 |
| |
3117 | 3128 |
| |
3118 | 3129 |
| |
| 3130 | + | |
3119 | 3131 |
| |
3120 | 3132 |
| |
3121 | 3133 |
| |
| |||
3134 | 3146 |
| |
3135 | 3147 |
| |
3136 | 3148 |
| |
3137 |
| - | |
| 3149 | + | |
3138 | 3150 |
| |
3139 | 3151 |
| |
3140 | 3152 |
| |
| |||
3214 | 3226 |
| |
3215 | 3227 |
| |
3216 | 3228 |
| |
| 3229 | + | |
3217 | 3230 |
| |
3218 | 3231 |
| |
3219 | 3232 |
| |
| |||
3289 | 3302 |
| |
3290 | 3303 |
| |
3291 | 3304 |
| |
| 3305 | + | |
3292 | 3306 |
| |
3293 | 3307 |
| |
3294 | 3308 |
| |
| |||
3548 | 3562 |
| |
3549 | 3563 |
| |
3550 | 3564 |
| |
| 3565 | + | |
3551 | 3566 |
| |
3552 | 3567 |
| |
3553 | 3568 |
| |
| |||
3579 | 3594 |
| |
3580 | 3595 |
| |
3581 | 3596 |
| |
| 3597 | + | |
3582 | 3598 |
| |
3583 | 3599 |
| |
3584 | 3600 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2596 | 2596 |
| |
2597 | 2597 |
| |
2598 | 2598 |
| |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
2599 | 2603 |
| |
2600 | 2604 |
| |
2601 | 2605 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
| 149 | + | |
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
| 163 | + | |
| 164 | + | |
163 | 165 |
| |
164 | 166 |
| |
165 | 167 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
| 162 | + | |
| 163 | + | |
162 | 164 |
| |
163 | 165 |
| |
164 | 166 |
| |
|
0 commit comments
Comments
(0)