Fix range check in date_recv that tried to limit accepted values to only
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix range check in date_recv that tried to limit accepted values to only those accepted by date_in(). I confused julian day numbers and number of days since the postgres epoch 2000-01-01 in the original patch. I just noticed that it's still easy to get such out-of-range values into the database using to_date or +- operators, but this patch doesn't do anything about those functions. Per report from James Pye.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/date.c | modified | +3 −2 |
| src/include/utils/datetime.h | modified | +2 −2 |