Add error-checking to timestamp_recv

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Subject: Add error-checking to timestamp_recv
Date: 2004-04-05 15:30:30
Message-ID: 20040405153030.GS7060@ns.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Greetings,

The attached patch adds some error-checking to the timestamp_recv
function so that it's not possible to put an invalid timestamp into a
timestamp column (hopefully). The check is done in basically the
exact same way the out-of-bounds check in timestamp2tm is done.
There's probably an easier/cleaner way but this should work or at
least generate discussion and a better patch. :)

Thanks,

Stephen

Attachment Content-Type Size
pg_timestamp.patch text/plain 1.5 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Fabien COELHO 2004-04-05 16:41:57 Re: hint infrastructure setup (v3)
Previous Message Andrew Dunstan 2004-04-05 15:04:57 Re: hint infrastructure setup (v3)