Incorrect DataSet Serialisation

Incorrect DataSet Serialisation

Postby 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
Aaron
 

Postby Guest » Sun 01 May 2005 13:59

I forgot the table definition:

create table test
(
testbit bit(2)
);
Guest
 

Postby Oleg » Wed 04 May 2005 10:06

This behaviour is concerned with that we changed type of returned for BIT field values.
Oleg
Devart Team
 
Posts: 264
Joined: Thu 28 Oct 2004 13:56


Return to dotConnect for PostgreSQL