* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m

(assignExternalInfoForEntity:): Remove method replicated from
	superclass.

	* EOControl/EOKeyValueCoding.m (computeAvgForKey:): Return zero
	for empty arrays.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24314 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2007-01-04 22:51:31 +00:00
parent 25996234fd
commit fd4261fdbe
4 changed files with 16 additions and 18 deletions

View file

@ -1,3 +1,12 @@
2007-01-04 David Ayers <ayers@fsfe.org>
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
(assignExternalInfoForEntity:): Remove method replicated from
superclass.
* EOControl/EOKeyValueCoding.m (computeAvgForKey:): Return zero
for empty arrays.
2006-01-03 Matt Rice <ratmice@gmail.com>
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m: Remove

View file

@ -266,22 +266,6 @@ static NSString *typeNames[][2] = {
[attribute setExternalType: typeNames[value][0]];
}
+ (void)assignExternalInfoForEntity: (EOEntity *)entity
{
NSArray *attributes = [entity attributes];
EOAttribute *attribute = nil;
IMP arrayOAI = NULL;
static SEL selfAEIFA_SEL = @selector(assignExternalInfoForAttribute:);
IMP selfAEIFA_IMP = [self methodForSelector: selfAEIFA_SEL];
unsigned i, c;
for (i=0, c=[attributes count]; i < c; i++)
{
attribute = PSQLA_ObjectAtIndexWithImpPtr(attributes, &arrayOAI, i);
selfAEIFA_IMP(self, selfAEIFA_SEL, attribute);
}
}
/* Inherited methods */
- (EOAdaptorContext *)createAdaptorContext

View file

@ -185,7 +185,8 @@ pgResultDictionary(PGresult *pgResult)
* read up to the specified number of characters, terminating at a non-digit
* except for leading whitespace characters.
*/
static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
static inline int
getDigits(const char *from, char *to, int limit, BOOL *error)
{
int i = 0;
int j = 0;

View file

@ -458,7 +458,11 @@ initialize(void)
right = [[GDL2_ObjectAtIndexWithImp(self,oaiIMP,i) valueForKey: key] decimalValue];
NSDecimalAdd(&result, &left, &right, mode);
}
};
}
else
{
return [NSDecimalNumber zero];
}
left = result;
NSDecimalFromComponents(&right, (unsigned long long) count, 0, NO);