npgsql - Npgsql2: Removed verification of NpgsqlDbType.Array when

From: fxjr(at)pgfoundry(dot)org (User Fxjr)
To: pgsql-committers(at)postgresql(dot)org
Subject: npgsql - Npgsql2: Removed verification of NpgsqlDbType.Array when
Date: 2008-02-14 13:50:08
Message-ID: 20080214135008.93E7B17AD0B5@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Removed verification of NpgsqlDbType.Array when setting NpgsqlDbType property. As BigInt has an enum value of 0, user would have problems if they try to specify an array of bigint because NpgsqlDbType.Array | NpgsqlDbType.Bigint == NpgsqlDbType.Array. This decision was based in the fact that to fix this problem, we would need to change all enum values which would lead to break already compiled clients. Thanks Jon Hanna for discussion about that.

Modified Files:
--------------
Npgsql2/src/Npgsql:
NpgsqlParameter.cs (r1.9 -> r1.10)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlParameter.cs.diff?r1=1.9&r2=1.10)

Browse pgsql-committers by date

  From Date Subject
Next Message User Mkz 2008-02-14 14:02:05 pgbouncer - pgbouncer: make IOBuf use unsigned ints
Previous Message User Mkz 2008-02-14 13:38:52 pgbouncer - pgbouncer: system.h + types cleanup - use proper printf