Bug #3917 _tableName isn't nulled between GenerateSchema
Submitted: 27 May 2004 17:12 Modified: 11 Jun 2004 1:49
Reporter: Reggie Burnett Email Updates:
Status: Closed Impact on me:
Category:Connector / NET Severity:S2 (Serious)
Version: OS:
Assigned to: Reggie Burnett CPU Architecture:Any

[27 May 2004 17:12] Reggie Burnett
 dll version
got exceptions from dll component, analyzed
commandbuilder.cs from cvs revision 1.11 and 1.10

if (_tableName == null)
_tableName = (string)row["BaseTableName"];
else if (_tableName != (string)row["BaseTableName"])
throw new
InvalidOperationException("MySqlCommandBuilder does
not support multi-table statements");

throws exception when calling dataadapter.update 2nd+
time on different tables, _tableName has previuos table
name and is not null...

How to repeat:
[11 Jun 2004 1:49] Reggie Burnett
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at

Additional info:

_tableName is not set to null in RefreshSchema.  This will cause GenerateSchema to refresh the table name.