[Mono-devel-list] bad "True" string generated in an schema file when DataSet.WriteXmlSchema used...
yoros at wanadoo.es
yoros at wanadoo.es
Mon Jul 26 17:18:54 EDT 2004
I attached a diff for this bug...
When using DataSet.WriteXmlSchema, it writes "True" in DefaultValues
of boolean types... it fails when ReadXmlSchema is used.
If it's all ok, I'll commit.
Regards,
Pedro
--
Pedro Martínez Juliá
\ pmj3 at alu.um.es
)| yoros at wanadoo.es
/ http://yoros.dyndns.org
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information: pub 1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E 534F 588B E285 74F1 D3AC
-------------- next part --------------
Index: System.Data/DataSet.cs
===================================================================
RCS file: /cvs/public/mcs/class/System.Data/System.Data/DataSet.cs,v
retrieving revision 1.97
diff -r1.97 DataSet.cs
1663c1663
< colElem.DefaultValue = col.DefaultValue.ToString ();
---
> colElem.DefaultValue = (col.DefaultValue is bool)? col.DefaultValue.ToString().ToLower() : col.DefaultValue.ToString ();
More information about the Mono-devel-list
mailing list