| From: | دار الآثار للنشر والتوزيع-صنعاء Dar Alathar-Yemen <dar_alathar(at)hotmail(dot)com> |
|---|---|
| To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
| Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | رد: BUG #16419: wrong parsing BC year in to_date() function |
| Date: | 2020-05-07 11:48:40 |
| Message-ID: | AM0PR03MB3570F55B3943E5DF84C7F08EBFA50@AM0PR03MB3570.eurprd03.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
research how it behaves in the other database it tries to emulate and either document or possibly change the behavior in v14
As in https://stackoverflow.com/questions/6779521/how-do-i-insert-a-bc-date-into-oracle and http://rwijk.blogspot.com/2008/10/year-zero.html
In Oracle
to_date('-4700/01/01','syyyy/mm/dd')
returns
01/01/4700 BC
In documents https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_commands_1029.htm#OLADM780
YEAR
SYEAR
Year, spelled out; S prefixes BC dates with a minus sign (-).
YYYY
SYYYY
4-digit year; S prefixes BC dates with a minus sign.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | PG Bug reporting form | 2020-05-07 13:58:40 | BUG #16422: psqlodbc |
| Previous Message | PG Bug reporting form | 2020-05-07 11:17:30 | BUG #16421: Table Rapid Growth due to tuple accumulation |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2020-05-07 12:24:07 | Re: Why are wait events not reported even though it reads/writes a timeline history file? |
| Previous Message | Michael Paquier | 2020-05-07 11:33:27 | Re: Should smgrdounlink() be removed? |