Bug #29466 | Update() method doesn't always work. | ||
---|---|---|---|
Submitted: | 1 Jul 2007 4:55 | Modified: | 26 Aug 2007 7:57 |
Reporter: | Jay Bourgeois | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.0.7 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | Connector/Net Update MySqlDataAdapter |
[1 Jul 2007 4:55]
Jay Bourgeois
[2 Jul 2007 1:07]
Jay Bourgeois
After looking into this a little further, Each Row(x).item(y) has three property values: current default origonal [something else..] The problem with the .update command is uses these values to generate the UPDATE. When a table is created from the XML file it does not contain current and origial values like it did when a table is loaded and changed. I would suggest correcting this issue with the following logic: If a row is flagged as 'modified' but the orignal and current values are the same, perhaps the UPDATE command could include all the Key columns in the WHERE clause and all the rest of the values in the SET clause. I've written some routiens that do this, however, I have to call this explicitly and seperatly from the .Update routine. Cheers.
[18 Jul 2007 17:58]
Matthew Bilek
Also having a problem with the 5.0.7 .Net connector not updating an auto_increment column when the .Update() method is called. 1.0.7 .Net connector would update auto_increment columns properly.
[26 Jul 2007 7:57]
Tonci Grgin
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Explanation: Hi Jay and thanks for your report. Calling AcceptChanges essentially clears the dirty bit on a datatable thus it should be used after an update has brought back fresh data. The failure in sequence might be causing your problem (as I see it with info provided). Please attach to this report: - MySQL server version, my.ini/cnf file - DDL script suitable for import with mysql cl client - Small but complete test case showing this problem every time it is run
[26 Aug 2007 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".