npgsql - Npgsql2: Fix for a date and infinity values comparison.

From: fxjr(at)pgfoundry(dot)org (User Fxjr)
To: pgsql-committers(at)postgresql(dot)org
Subject: npgsql - Npgsql2: Fix for a date and infinity values comparison.
Date: 2008-10-19 13:39:19
Message-ID: 20081019133920.12C3F17ADE03@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------

Fix for a date and infinity values comparison.
>From patch:

"This check for Datetime.minvalue and maxvalue is needed in order to
workaround a problem when comparing date values with infinity.
This is a known issue with postgresql and it is reported here:
http://archives.postgresql.org/pgsql-general/2008-10/msg00535.php
Josh's solution to add cast is documented here:
http://pgfoundry.org/forum/message.php?msg_id=1004118"

Thanks Josh for fix idea.

Modified Files:
--------------
Npgsql2/src/Npgsql:
NpgsqlParameter.cs (r1.18 -> r1.19)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlParameter.cs.diff?r1=1.18&r2=1.19)

Browse pgsql-committers by date

  From Date Subject
Next Message User Fxjr 2008-10-19 13:40:39 npgsql - Npgsql2: Added tests for date and infinity comparisions.
Previous Message Jeremy Drake 2008-10-19 06:17:56 varint - varint: add some simple regression tests for arithmetic ops.