forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit07c4b6a
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 parent7335563 commit07c4b6a
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 | |
|---|---|---|---|
| |||
4359 | 4359 | | |
4360 | 4360 | | |
4361 | 4361 | | |
| 4362 | + | |
4362 | 4363 | | |
4363 | 4364 | | |
4364 | 4365 | | |
| |||
4633 | 4634 | | |
4634 | 4635 | | |
4635 | 4636 | | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
4636 | 4640 | | |
4637 | 4641 | | |
4638 | 4642 | | |
| |||
4829 | 4833 | | |
4830 | 4834 | | |
4831 | 4835 | | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
4832 | 4839 | | |
4833 | 4840 | | |
4834 | 4841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| |||
0 commit comments
Comments
(0)