| Bug #39496 | Transactionscope/Rollback | ||
|---|---|---|---|
| Submitted: | 17 Sep 2008 11:42 | Modified: | 16 Jul 2009 9:33 |
| Reporter: | R Roberts | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | Connector / NET | Severity: | S2 (Serious) |
| Version: | 5.2.1 | OS: | Windows (Windows XP Pro) |
| Assigned to: | CPU Architecture: | Any | |
[17 Sep 2008 11:42]
R Roberts
[18 Sep 2008 9:02]
R Roberts
I am not using insertcommand, updatecommand, selectcommand and deletecommand. I have just create a delete SQL text through the XSD wizard for the table adapters. I can't seem to get the transaction using the MySQL connection, it still deletes and never does a rollback. Still trying various approaches on this in still using the XSD(table adapters). Thanks
[18 Sep 2008 14:25]
R Roberts
I have tried this approach and yet again it still did not rollback either; just kept inserting it:
int RowsAffected = 0;
manufacturersTableAdapter X = new manufacturersTableAdapter();
X.Connection.Open();
MySqlTransaction myTrans = X.Connection.BeginTransaction();
X.AttachTransaction(myTrans);
try
{
DataSet1.manufacturersDataTable manuRows = X.GetAllManufacturers();
DataView view = new DataView(manuRows);
view.RowFilter = "manufacturer_id = '" + Code + "'";
if (view.Count == 0)
{
X.Insert(Code, Description);
throw new Exception();
}
else
{
texstatus = "The code you have entered is already in use. Please use another.";
}
}
catch (Exception ex)
{
myTrans.Rollback();
texstatus = "Transaction has been aborted!";
}
return (RowsAffected == 1);
[9 Feb 2009 12:00]
R Roberts
Any luck with it? Is there a way to resolve this please?
[16 Jun 2009 9:33]
Tonci Grgin
Romy, I apologize on our behalf, too much work and we forgot about this report. Is this solved by now? I remember we had similar discussion on another report.
[16 Jul 2009 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".
