Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group