barolit
(barolit)
February 8, 2012, 2:30pm
1
Hi,
I have the following code:
NSArray *tablesToSend = [NSArray arrayWithObjects:self.visitsTable,self.colTable, self.colPaymentTable,self.colDetailTable,self.orderTable,self.customerInventory, self.orderDetailTable,self.paramsTable, self.coopTable, self.coopDetailTable,self.planTareaTable,self.planVisitaTable,self.contractsTable,self.evaluationTable, self.orderPromotionsTable, self.depositDetailTable, nil];
[rda applyChangesForTables:tablesToSend];
I would like to know if this update is protected by a transaction, ALL or NOTHING??
I had a strange behavior, with updates failing with ‘self.colDetailTable’ but changes in ‘self.orderTable’ persisted on the server.
Regards,
mh
(marc hoffman)
February 8, 2012, 6:29pm
2
If you apply all changes in one call,mad shown in your code snippet, this should all be handles within one transaction, server side, yes.
barolit
(barolit)
February 8, 2012, 7:33pm
3
Thanks, just confirming. Maybe this was an isolated issue, should it happen again i’ll let you know.
mh
(marc hoffman)
February 8, 2012, 7:36pm
4
Please do, this sounds like it would be a bug, if this really happens…
barolit
(barolit)
July 3, 2012, 7:09pm
5
Hi Mark,
Guess what, it happened again, and several times!
The following code:
NSArray *tablesToSend = [NSArray arrayWithObjects:self.visitsTable,self.colTable, self.colPaymentTable,self.colDetailTable,self.orderTable,self.customerInventory, self.orderDetailTable,self.paramsTable, self.coopTable, self.coopDetailTable,self.planTareaTable,self.planVisitaTable,self.contractsTable,self.evaluationTable, self.orderPromotionsTable, self.depositDetailTable, nil];
[rda applyChangesForTables:tablesToSend];
I would like to know if this update is protected by a transaction, ALL or NOTHING??
Updates failing with ‘self.colDetailTable’ but changes in ‘self.orderTable’ persisted on the server.
BTW: The update failing was due to a bug in our logic, resulting in PRIMARY KEY error, but anyway, we expected that NONE of the tables would have been updated.
We are using: Relavity Server, Connected to SQL Server 2008 from iOS 5.1 client. DA: Winter 2012.
Regards,
mh
(marc hoffman)
July 4, 2012, 12:50am
6
thanx. i’ll ask Anton to have a look and get back to you tomorrow, he knows this stuff best.
antonk
(antonk)
July 4, 2012, 10:21am
7
barolit
(barolit)
July 4, 2012, 9:39pm
8
Thanks i will git a try immediately