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.
date.c (r1.148 -> r1.149)
datetime.h (r1.76 -> r1.77)
pgsql-committers by date
|Next:||From: Peter Eisentraut||Date: 2009-10-26 21:11:22|
|Subject: pgsql: Check errors in for loop|
|Previous:||From: Tom Lane||Date: 2009-10-26 02:26:52|
|Subject: pgsql: Re-implement EvalPlanQual processing to improve its performance |