Page 1 of 1

IDataReader getInt32 still returns wrong values

Posted: Tue 31 May 2005 13:30
by kolya
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

Posted: Tue 31 May 2005 15:38
by Yuri
Please specify what is the version of PostgreSQL server you use.

Posted: Tue 31 May 2005 16:52
by kolya
I use PostgreSQL 8.0.0. and check the data type of the db fields programatically via
string fieldType = idr.GetFieldType(i).FullName;

Posted: Thu 02 Jun 2005 07:29
by Yuri
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.