Page 1 of 1

Incorrect DataSet Serialisation

Posted: Sun 01 May 2005 13:57
by Aaron
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

Posted: Sun 01 May 2005 13:59
by Guest
I forgot the table definition:

create table test
(
testbit bit(2)
);

Posted: Wed 04 May 2005 10:06
by Oleg
This behaviour is concerned with that we changed type of returned for BIT field values.