mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-06-01 17:52:14 +00:00
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
([EOAttribute-_valueTypeCharacter]): Correct references from _valueTypeChar. ([PostgreSQLChannel+initialize]): Ditto. (newValueForNumberTypeLengthAttribute): Ditto. Handle nil return value of valueType. Bug reported by: Eric Johns <ericjohns@verizon.net>. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@25597 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1bfaf20463
commit
ad9989bbe3
2 changed files with 22 additions and 5 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2007-11-21 David Ayers <ayers@fsfe.org>
|
||||||
|
|
||||||
|
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
|
||||||
|
([EOAttribute-_valueTypeCharacter]): Correct references from
|
||||||
|
_valueTypeChar.
|
||||||
|
([PostgreSQLChannel+initialize]): Ditto.
|
||||||
|
(newValueForNumberTypeLengthAttribute): Ditto. Handle nil
|
||||||
|
return value of valueType.
|
||||||
|
Bug reported by: Eric Johns <ericjohns@verizon.net>.
|
||||||
|
|
||||||
2007-10-31 David Ayers <ayers@fsfe.org>
|
2007-10-31 David Ayers <ayers@fsfe.org>
|
||||||
|
|
||||||
* Makefile.postamble (after-distclean::): Remove generated
|
* Makefile.postamble (after-distclean::): Remove generated
|
||||||
|
|
|
@ -84,7 +84,7 @@ RCS_ID("$Id$")
|
||||||
|
|
||||||
@interface EOAttribute (private)
|
@interface EOAttribute (private)
|
||||||
- (Class)_valueClass;
|
- (Class)_valueClass;
|
||||||
- (char)_valueTypeChar;
|
- (char)_valueTypeCharacter;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
static BOOL attrRespondsToValueClass = NO;
|
static BOOL attrRespondsToValueClass = NO;
|
||||||
|
@ -263,9 +263,16 @@ newValueForNumberTypeLengthAttribute(const void *bytes,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char valueTypeChar = attrRespondsToValueTypeChar
|
char valueTypeChar = '\0';
|
||||||
? [attribute _valueTypeChar]
|
if (attrRespondsToValueTypeChar)
|
||||||
: [[attribute valueType] cString][0];
|
{
|
||||||
|
valueTypeChar = [attribute _valueTypeCharacter];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NSString *vt = [attribute valueType];
|
||||||
|
if (vt) valueTypeChar = [[attribute valueType] UTF8String][0];
|
||||||
|
}
|
||||||
switch(valueTypeChar)
|
switch(valueTypeChar)
|
||||||
{
|
{
|
||||||
case 'i':
|
case 'i':
|
||||||
|
@ -475,7 +482,7 @@ newValueForBytesLengthAttribute (const void *bytes,
|
||||||
attrRespondsToValueClass
|
attrRespondsToValueClass
|
||||||
= [EOAttribute instancesRespondToSelector: @selector(_valueClass)];
|
= [EOAttribute instancesRespondToSelector: @selector(_valueClass)];
|
||||||
attrRespondsToValueTypeChar
|
attrRespondsToValueTypeChar
|
||||||
= [EOAttribute instancesRespondToSelector: @selector(_valueTypeChar)];
|
= [EOAttribute instancesRespondToSelector: @selector(_valueTypeCharacter)];
|
||||||
|
|
||||||
initialized = YES;
|
initialized = YES;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue