Update of /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv20649
Modified Files:
PGDataReader.cs
Log Message:
Fixed Primary Key info retrieval.
Index: PGDataReader.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source/PGDataReader.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PGDataReader.cs 14 Jul 2003 11:58:44 -0000 1.5
--- PGDataReader.cs 14 Jul 2003 12:48:53 -0000 1.6
***************
*** 329,333 ****
private bool isPrimaryKey(System.Array pKeyInfo, short ordinal)
{
! for (int i = 1; i < pKeyInfo.Length; i++)
{
if ((short)pKeyInfo.GetValue(i) == ordinal)
--- 329,333 ----
private bool isPrimaryKey(System.Array pKeyInfo, short ordinal)
{
! for (int i = pKeyInfo.GetLowerBound(0); i <= pKeyInfo.GetUpperBound(0); i++)
{
if ((short)pKeyInfo.GetValue(i) == ordinal)
|