npgsql - Npgsql2: [#1010488] NgsqlParameter of type containing DBNull

From: fxjr(at)pgfoundry(dot)org (User Fxjr)
To: pgsql-committers(at)postgresql(dot)org
Subject: npgsql - Npgsql2: [#1010488] NgsqlParameter of type containing DBNull
Date: 2008-10-05 17:35:00
Message-ID: 20081005173500.2ABA817ADDF4@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

[#1010488] NgsqlParameter of type containing DBNull values throws NullReferenceException. Thanks Christ Akkermans for testcase. Now, Npgsql handles first elements which aren't null as Arrays and IEnumerables. Also added test case for this bug.

Modified Files:
--------------
Npgsql2/testsuite/noninteractive/NUnit20:
CommandTests.cs (r1.18 -> r1.19)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/testsuite/noninteractive/NUnit20/CommandTests.cs.diff?r1=1.18&r2=1.19)
Npgsql2/src/NpgsqlTypes:
ArrayHandling.cs (r1.4 -> r1.5)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/NpgsqlTypes/ArrayHandling.cs.diff?r1=1.4&r2=1.5)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2008-10-05 18:56:09 pgsql: Remove some unportable tests
Previous Message Peter Eisentraut 2008-10-05 17:33:17 pgsql: Remove obsolete internal functions istrue, isfalse, isnottrue,