npgsql - Npgsql2: Fix for a date and infinity values comparison. - Mailing list pgsql-committers

From fxjr@pgfoundry.org (User Fxjr)
Subject npgsql - Npgsql2: Fix for a date and infinity values comparison.
Date
Msg-id 20081019133920.12C3F17ADE03@pgfoundry.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: jeremyd@pgfoundry.org (Jeremy Drake)
Date:
Subject: varint - varint: add some simple regression tests for arithmetic ops.
Next
From: fxjr@pgfoundry.org (User Fxjr)
Date:
Subject: npgsql - Npgsql2: Added tests for date and infinity comparisions.