[Mono-dev] DataTable bug in 1.1.13

Konstantin Triger kostat at mainsoft.com
Sun Feb 5 13:35:06 EST 2006

Hi Senga,

OK, agree with your correction. The patch I proposed is not complete.
Like you said, we probably should use also the CommandBehavior to get
the right MissingSchemaAction parameter while forwarding to the static
variant of the BuildSchema.


-----Original Message-----
From: T Senganal [mailto:tsenganal at novell.com] 
Sent: Sunday, February 05, 2006 5:17 PM
To: mono-devel-list at lists.ximian.com; Konstantin Triger
Subject: RE: [Mono-dev] DataTable bug in 1.1.13


>The default for AllowDBNull is true, so only when MissingSchemaAction
>set to AddWithKey and when it's logically correct, the AllowDBNull
>be set to false - exactly what we need. Please verify this with the

Ignore my prev suggestion to set it if is MissingSchemaAction  set to
AddWithKey.. That was incorrect :-(

FillSchema needs to set the AllowDBNull value unless
MissingSchemaAction is Ignore or Error.

If we apply the patch, then AllowDBNull value wil lbe set only if
MissingSchemaAction is AddWithKey 'and'
other conditions like (isKey etc) are true and that is not correct..
Pls refer to bug #76433 ..

Will need to dig a lil bit more on this.. ms.net seems to depend on the
value of CommandBehavior (have to verify this).. 


More information about the Mono-devel-list mailing list