forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit332584d
committed
Fix EXTRACT(ISOYEAR FROM timestamp) for years BC.
The test cases added by commit26ae3aa exposed an old oversight intimestamp[tz]_part: they didn't correct the result of date2isoyear()for BC years, so that we produced an off-by-one answer for such years.Fix that, and back-patch to all supported branches.Discussion:https://postgr.es/m/SG2PR06MB37762CAE45DB0F6CA7001EA9B6550@SG2PR06MB3776.apcprd06.prod.outlook.com1 parent7d23381 commit332584d
File tree
3 files changed
+9
-2
lines changed- src
- backend/utils/adt
- test/regress/expected
3 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4265 | 4265 | | |
4266 | 4266 | | |
4267 | 4267 | | |
| 4268 | + | |
4268 | 4269 | | |
4269 | 4270 | | |
4270 | 4271 | | |
| |||
4539 | 4540 | | |
4540 | 4541 | | |
4541 | 4542 | | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
4542 | 4546 | | |
4543 | 4547 | | |
4544 | 4548 | | |
| |||
4735 | 4739 | | |
4736 | 4740 | | |
4737 | 4741 | | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
4738 | 4745 | | |
4739 | 4746 | | |
4740 | 4747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
| 825 | + | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
916 | | - | |
| 916 | + | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| |||
0 commit comments
Comments
(0)