• Heikki Linnakangas's avatar
    Fix range check in date_recv that tried to limit accepted values to only · 2078e384
    Heikki Linnakangas authored
    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.
    2078e384
datetime.h 9.02 KB