Line 0
Link Here
|
|
|
1 |
--- ./sope-gdl1/GDLAccess/EODatabaseContext.m.orig 2013-07-22 14:03:07.000000000 +0100 |
2 |
+++ ./sope-gdl1/GDLAccess/EODatabaseContext.m 2013-10-09 17:03:32.000000000 +0100 |
3 |
@@ -118,7 +118,7 @@ |
4 |
if (self->transactionNestingLevel == 0) { |
5 |
[NSException raise:NSInternalInconsistencyException |
6 |
format: |
7 |
- @"EODatabaseContext:%x: No transaction in progress " |
8 |
+ @"EODatabaseContext:%@: No transaction in progress " |
9 |
@"in %s", self, _function]; |
10 |
} |
11 |
} |
12 |
@@ -264,7 +264,7 @@ |
13 |
(unsigned)transactionNestingLevel) { |
14 |
[NSException raise:NSInternalInconsistencyException |
15 |
format: |
16 |
- @"EODatabaseContext:%x:transaction nesting levels do not match: " |
17 |
+ @"EODatabaseContext:%@:transaction nesting levels do not match: " |
18 |
@"database has %d, adaptor has %d, " |
19 |
@"in [EODatabaseContext beginTransaction]", |
20 |
self, transactionNestingLevel, |
21 |
@@ -295,7 +295,7 @@ |
22 |
(unsigned)self->transactionNestingLevel) { |
23 |
[NSException raise:NSInternalInconsistencyException |
24 |
format: |
25 |
- @"EODatabaseContext:%x:transaction nesting levels do not match: " |
26 |
+ @"EODatabaseContext:%@:transaction nesting levels do not match: " |
27 |
@"database has %d, adaptor has %d, " |
28 |
@"in [EODatabaseContext commitTransaction]", |
29 |
self, transactionNestingLevel, |
30 |
@@ -325,7 +325,7 @@ |
31 |
(unsigned)self->transactionNestingLevel) { |
32 |
[NSException raise:NSInternalInconsistencyException |
33 |
format: |
34 |
- @"EODatabaseContext:%x:transaction nesting levels do not match: " |
35 |
+ @"EODatabaseContext:%@:transaction nesting levels do not match: " |
36 |
@"database has %d, adaptor has %d, " |
37 |
@"in [EODatabaseContext rollbackTransaction]", |
38 |
self, transactionNestingLevel, |
39 |
@@ -385,7 +385,7 @@ |
40 |
if ([self transactionNestingLevel]) { |
41 |
[NSException raise:NSInvalidArgumentException |
42 |
format: |
43 |
- @"EODatabaseContext:%x: Cannot change update strategy " |
44 |
+ @"EODatabaseContext:%@: Cannot change update strategy " |
45 |
@"when context has a transaction open, " |
46 |
@"in [EODatabaseContext setUpdateStrategy]", |
47 |
self]; |
48 |
@@ -483,14 +483,14 @@ |
49 |
if (_object == nil) { |
50 |
[NSException raise:NSInvalidArgumentException |
51 |
format: |
52 |
- @"EODatabaseContext:%x: Cannot forget null object, " |
53 |
+ @"EODatabaseContext:%@: Cannot forget null object, " |
54 |
@"in [EODatabaseContext forgetObject]", |
55 |
self]; |
56 |
} |
57 |
if ([EOFault isFault:_object]) { |
58 |
[NSException raise:NSInvalidArgumentException |
59 |
format: |
60 |
- @"EODatabaseContext:%x: Cannot forget forget a fault object, " |
61 |
+ @"EODatabaseContext:%@: Cannot forget forget a fault object, " |
62 |
@"in [EODatabaseContext forgetObject]", |
63 |
self]; |
64 |
} |
65 |
@@ -532,14 +532,14 @@ |
66 |
if (_object == nil) { |
67 |
[NSException raise:NSInvalidArgumentException |
68 |
format: |
69 |
- @"EODatabaseContext:%x: Cannot record null object, " |
70 |
+ @"EODatabaseContext:%@: Cannot record null object, " |
71 |
@"in [EODatabaseContext recordObject:primaryKey:entity:snapshot:]", |
72 |
self]; |
73 |
} |
74 |
if ((_entity == nil) && self->isUniquingObjects) { |
75 |
[NSException raise:NSInvalidArgumentException |
76 |
format: |
77 |
- @"EODatabaseContext:%x: Cannot record object with null entity " |
78 |
+ @"EODatabaseContext:%@: Cannot record object with null entity " |
79 |
@"when uniquing objects, " |
80 |
@"in [EODatabaseContext recordObject:primaryKey:entity:snapshot:]", |
81 |
self]; |
82 |
@@ -550,7 +550,7 @@ |
83 |
if ((_key == nil) && self->isUniquingObjects) { |
84 |
[NSException raise:NSInvalidArgumentException |
85 |
format: |
86 |
- @"EODatabaseContext:%x: Cannot record object with null key " |
87 |
+ @"EODatabaseContext:%@: Cannot record object with null key " |
88 |
@"when uniquing objects, " |
89 |
@"in [EODatabaseContext recordObject:primaryKey:entity:snapshot:]", |
90 |
self]; |
91 |
@@ -558,7 +558,7 @@ |
92 |
if ((snapshot == nil) && isKeepingSnapshots && ![EOFault isFault:_object]) { |
93 |
[NSException raise:NSInvalidArgumentException |
94 |
format: |
95 |
- @"EODatabaseContext:%x: Cannot record object with null snapshot " |
96 |
+ @"EODatabaseContext:%@: Cannot record object with null snapshot " |
97 |
@"when keeping snapshots, " |
98 |
@"in [EODatabaseContext recordObject:primaryKey:entity:snapshot:]" |
99 |
@": snapshot=%s keepsSnapshots=%s isFault=%s", |
100 |
@@ -665,14 +665,14 @@ |
101 |
if (_object == nil) { |
102 |
[NSException raise:NSInvalidArgumentException |
103 |
format: |
104 |
- @"EODatabaseContext:%x: Cannot record null object as locked, " |
105 |
+ @"EODatabaseContext:%@: Cannot record null object as locked, " |
106 |
@"in [EODatabaseContext recordLockedObject:]", |
107 |
self]; |
108 |
} |
109 |
if ([EOFault isFault:_object]) { |
110 |
[NSException raise:NSInvalidArgumentException |
111 |
format: |
112 |
- @"EODatabaseContext:%x: Cannot record a fault object as locked, " |
113 |
+ @"EODatabaseContext:%@: Cannot record a fault object as locked, " |
114 |
@"in [EODatabaseContext recordLockedObject:]", |
115 |
self]; |
116 |
} |
117 |
@@ -695,14 +695,14 @@ |
118 |
if (_object == nil) { |
119 |
[NSException raise:NSInvalidArgumentException |
120 |
format: |
121 |
- @"EODatabaseContext:%x: Cannot record null object as updatetd, " |
122 |
+ @"EODatabaseContext:%@: Cannot record null object as updatetd, " |
123 |
@"in [EODatabaseContext recordUpdatedObject:]", |
124 |
self]; |
125 |
} |
126 |
if ([EOFault isFault:_object]) { |
127 |
[NSException raise:NSInvalidArgumentException |
128 |
format: |
129 |
- @"EODatabaseContext:%x: Cannot record fault object as updated, " |
130 |
+ @"EODatabaseContext:%@: Cannot record fault object as updated, " |
131 |
@"in [EODatabaseContext recordUpdatedObject:]", |
132 |
self]; |
133 |
} |
134 |
@@ -728,7 +728,7 @@ |
135 |
return [NSString stringWithFormat: |
136 |
@"<%@[0x%p]: #channels=%i tx-nesting=%i>", |
137 |
NSStringFromClass([self class]), self, |
138 |
- [self->channels count], |
139 |
+ (int)[self->channels count], |
140 |
[self transactionNestingLevel]]; |
141 |
} |
142 |
|