![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
postgres=# select '4714-01-27 BC'::date; ERROR: date out of range: "4714-01-27 BC" postgres=# select cast(test as date) from timetest; test --------------- 4714-01-27 BC (1 row) postgres=# postgres=# select cast('4714-01-27 BC' as date); ERROR: date out of range: "4714-01-27 BC" postgres=# This seems pretty broken. Joshua D. Drake |
#2
| |||
| |||
|
|
but again to_date doesn't: regression=# select to_date('4714-01-27 BC', 'YYYY-MM-DD BC'); to_date --------------- 4714-01-27 BC (1 row) I'm not concerned about to_date so much as I am that timestamp_in lets you store values you can't read with timestamp_out. Once the value is in there you can happily move it around with create table as and such... |
![]() |
| Thread Tools | |
| Display Modes | |
| |