https://bugzilla.novell.com/show_bug.cgi?id=332875

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=332875#c4


Ben Martin <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]
           Severity|Minor                                           |Major
         OS/Version|Other                                           |All
           Priority|P5 - None                                       |P2 - High
            Version|1.2                                             |unspecified




--- Comment #4 from Ben Martin <[EMAIL PROTECTED]>  2008-06-26 21:47:44 MDT ---
I am having the same problem.

The problem is in the XmlSchemaDataImporter.cs method AddParentKeyColumn
line 833.

It exits the method when the currentTable.PrimaryKey != null.  This leaves the
pass variable DataColumn col not set to the correct column name.

I suggest that the code be changed to:

if (currentTable.PrimaryKey != null)
{
   return;
}
else
{
   col.ColumnName = currentTable.PrimaryKey.ColumnName;
   col.ColumnMapping = currentTable.PrimaryKey.ColumnMapping;
   col.Namespace = currentTable.PrimaryKey.Namespace;
   col.DataType = currentTable.PrimaryKey.DataType;
   col.AutoIncrement = currentTable.PrimaryKey.AutoIncrement;
   col.AllowDBNull = currentTable.PrimaryKey.AllowDBNull;

   return;
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to