Incorrect DataSet Serialisation

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

Incorrect DataSet Serialisation

Post by Aaron » Sun 01 May 2005 13:57

Hi,

The bit type fields in a DataSet do not get correctly serialised when using the CoreLab driver.

DataSet resultSet = new DataSet();
PgSqlConnection conn = new PgSqlConnection(dbConnStr)
PgSqlDataAdapter adapter = new PgSqlDataAdapter(query, conn);
adapter.Fill(resultSet);

dataSet.WriteXml(fileName, XmlWriteMode.IgnoreSchema);

Results for Npgsql:




11


10



Results for CoreLab:




System.Collections.BitArray


System.Collections.BitArray



Aaron

Guest

Post by Guest » Sun 01 May 2005 13:59

I forgot the table definition:

create table test
(
testbit bit(2)
);

Oleg
Devart Team
Posts: 264
Joined: Thu 28 Oct 2004 13:56

Post by Oleg » Wed 04 May 2005 10:06

This behaviour is concerned with that we changed type of returned for BIT field values.

Post Reply