Added transactions around database transactions, especially around

the DELETE ones that wouldn't work too well in Oracle.

Monotone-Parent: 1bdb79b8cf0d84f8038dc05631d7db768d3faca4
Monotone-Revision: cd3773da85b6861c3ff9d7ec853caa41e8bb9591

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-10-13T13:13:01
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte committed 2008-10-13 13:13:01 +00:00
1 parent adede16568
commit 498ee6581c
3 files changed
+19 -7

No files matched your search

+3
View File
@@ -831,11 +831,14 @@ static NSCharacterSet *asciiAlphaNumericCS = nil;
userInfo:nil];
}
[[channel adaptorContext] beginTransaction];
if ((ex = [channel evaluateExpressionX:sql]) != nil) {
[self releaseChannel:channel];
return ex;
}
[[channel adaptorContext] commitTransaction];
[self releaseChannel:channel];
return [folder deleteFolder];