|
-
May 5th, 2003, 05:30 AM
#1
Thread Starter
Fanatic Member
Bug with DataSet.ReadXMLSchema
Apparently when using the DataSet.ReadXMLSchema, if you want a string field to have a DefaultValue of "" this is not interpreted correctly when the table is built. The DefaultValue for the field ends up being DBNull.
Here's a sample segment (which was written originally by DataSet.WriteXMLSchema):
Code:
<xs:element name="Bonus" msdata:CaseSensitive="True">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" />
<xs:element name="Value" type="xs:string" default="" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
Irritating as I will have to go change a bunch of code to cope with this! Heads up!
-
May 5th, 2003, 08:51 AM
#2
Frenzied Member
Well it's a known issue that is fixed in Framework 1.1.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
May 5th, 2003, 11:09 AM
#3
Thread Starter
Fanatic Member
Huh? I am service packed and still have this problem.
-
May 5th, 2003, 01:06 PM
#4
Thread Starter
Fanatic Member
By the way where are you getting the information that this is an acknowledged bug, much less that it is fixed?
-
May 6th, 2003, 03:06 AM
#5
Frenzied Member
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
May 6th, 2003, 03:47 PM
#6
Thread Starter
Fanatic Member
Thanks for the info. Sure enough I seem to have version 1.0 installed. I had thought that the service pack took you to 1.1, guess it does not. grumble!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|