- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit8fc33e6
committed
Fix an oversight in commit4c70098.
I had supposed that the from_char_seq_search() call sites wereall passing the constant arrays you'd expect them to pass ...but on looking closer, the one for DY format was passing thedays[] array not days_short[]. This accidentally worked becausethe day abbreviations in English are all the same as the firstthree letters of the full day names. However, once we took outthe "maximum comparison length" logic, it stopped working.As penance for that oversight, add regression test cases coveringthis, as well as every other switch case in DCH_from_char() thatwas not reached according to the code coverage report.Also, fold the DCH_RM and DCH_rm cases into one --- now thatseq_search is case independent, there's no need to pass differentcomparison arrays for those cases.Back-patch, as the previous commit was.1 parent600b953 commit8fc33e6
File tree
3 files changed
+83
-5
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+83
-5
lines changedLines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3077 | 3077 |
| |
3078 | 3078 |
| |
3079 | 3079 |
| |
3080 |
| - | |
| 3080 | + | |
3081 | 3081 |
| |
3082 | 3082 |
| |
3083 | 3083 |
| |
| |||
3176 | 3176 |
| |
3177 | 3177 |
| |
3178 | 3178 |
| |
3179 |
| - | |
3180 |
| - | |
3181 |
| - | |
3182 |
| - | |
3183 | 3179 |
| |
3184 | 3180 |
| |
3185 | 3181 |
| |
|
Lines changed: 63 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2822 | 2822 |
| |
2823 | 2823 |
| |
2824 | 2824 |
| |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
2825 | 2837 |
| |
2826 | 2838 |
| |
2827 | 2839 |
| |
| |||
2906 | 2918 |
| |
2907 | 2919 |
| |
2908 | 2920 |
| |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
2909 | 2959 |
| |
2910 | 2960 |
| |
2911 | 2961 |
| |
| |||
2998 | 3048 |
| |
2999 | 3049 |
| |
3000 | 3050 |
| |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
3001 | 3064 |
| |
3002 | 3065 |
| |
3003 | 3066 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| 415 | + | |
| 416 | + | |
| 417 | + | |
415 | 418 |
| |
416 | 419 |
| |
417 | 420 |
| |
| |||
440 | 443 |
| |
441 | 444 |
| |
442 | 445 |
| |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
443 | 457 |
| |
444 | 458 |
| |
445 | 459 |
| |
| |||
473 | 487 |
| |
474 | 488 |
| |
475 | 489 |
| |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
476 | 495 |
| |
477 | 496 |
| |
478 | 497 |
| |
|
0 commit comments
Comments
(0)