IDataReader getInt32 still returns wrong values

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
kolya

IDataReader getInt32 still returns wrong values

Post by kolya » Tue 31 May 2005 13:30

The getInt32() method of IDataReader (implemented by PgSqlDataReader) returns wrong values. Even though the db field is of type int32, the correct values can only be read if getInt64() is used. If the IDataReader object is casted to PgSqlDataReader, the problem does not occur.

Regards,
kolya

Yuri
Posts: 140
Joined: Mon 08 Nov 2004 12:07

Post by Yuri » Tue 31 May 2005 15:38

Please specify what is the version of PostgreSQL server you use.

kolya

Post by kolya » Tue 31 May 2005 16:52

I use PostgreSQL 8.0.0. and check the data type of the db fields programatically via
string fieldType = idr.GetFieldType(i).FullName;

Yuri
Posts: 140
Joined: Mon 08 Nov 2004 12:07

Post by Yuri » Thu 02 Jun 2005 07:29

We reproduced your problem and fixed it. This fix will be included in the next PostgreSQLDirect .NET build. It will be available in about two weeks.

Post Reply