- Notifications
You must be signed in to change notification settings - Fork5
Commit7a52a8f
committed
Clean up the code for to_timestamp's conversion of year plus ISO day number
to date, as per bug #4702 and subsequent discussion. In particular, make itwork for years specified using AD/BC or CC fields, and fix the test for "noyear specified" so that it doesn't trigger inappropriately for 1 BC (which itwas doing even in code paths that had nothing to do with to_timestamp). Ialso did some minor code beautification in the non-ISO-day-number code path.This area has been busted all along, but because the code has been rewrittenrepeatedly, it would be considerable trouble to back-patch. It's such acorner case that it doesn't seem worth the effort.1 parent0f80200 commit7a52a8f
2 files changed
+28
-33
lines changedLines changed: 27 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
712 |
| - | |
| 712 | + | |
713 | 713 |
| |
714 |
| - | |
| 714 | + | |
715 | 715 |
| |
716 |
| - | |
717 |
| - | |
718 |
| - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
| |||
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
760 |
| - | |
| 760 | + | |
761 | 761 |
| |
762 |
| - | |
| 762 | + | |
763 | 763 |
| |
764 |
| - | |
765 |
| - | |
766 |
| - | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
767 | 767 |
| |
768 | 768 |
| |
769 | 769 |
| |
| |||
3281 | 3281 |
| |
3282 | 3282 |
| |
3283 | 3283 |
| |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
3284 | 3290 |
| |
3285 | 3291 |
| |
3286 | 3292 |
| |
3287 | 3293 |
| |
3288 |
| - | |
| 3294 | + | |
3289 | 3295 |
| |
3290 | 3296 |
| |
3291 | 3297 |
| |
3292 | 3298 |
| |
3293 | 3299 |
| |
3294 |
| - | |
3295 |
| - | |
3296 |
| - | |
3297 |
| - | |
3298 |
| - | |
3299 |
| - | |
| 3300 | + | |
| 3301 | + | |
3300 | 3302 |
| |
3301 |
| - | |
3302 |
| - | |
3303 |
| - | |
3304 |
| - | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
3305 | 3306 |
| |
3306 | 3307 |
| |
3307 | 3308 |
| |
3308 |
| - | |
| 3309 | + | |
3309 | 3310 |
| |
3310 |
| - | |
| 3311 | + | |
3311 | 3312 |
| |
3312 | 3313 |
| |
3313 | 3314 |
| |
3314 |
| - | |
| 3315 | + | |
3315 | 3316 |
| |
3316 | 3317 |
| |
3317 |
| - | |
3318 |
| - | |
| 3318 | + | |
3319 | 3319 |
| |
3320 | 3320 |
| |
3321 | 3321 |
| |
|
Lines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3668 | 3668 |
| |
3669 | 3669 |
| |
3670 | 3670 |
| |
3671 |
| - | |
3672 |
| - | |
3673 |
| - | |
3674 |
| - | |
3675 |
| - | |
3676 | 3671 |
| |
3677 | 3672 |
| |
3678 | 3673 |
| |
|
0 commit comments
Comments
(0)