* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:

Handle Custom class in newValueForNumberTypeLengthAttribute()


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37823 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2014-04-30 19:50:32 +00:00
parent c959f7c14c
commit f4d5a358b0
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,6 @@
2014-04-30 Manuel Guesdon <mguesdon@orange-concept.com>
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
Handle Custom class in newValueForNumberTypeLengthAttribute()
2014-04-26 Manuel Guesdon <mguesdon@orange-concept.com>
* EOAccess/EOAdaptorChannel.m
call delegate -adaptorChannel:willPerformOperations:

View file

@ -263,6 +263,13 @@ newValueForNumberTypeLengthAttribute(const void *bytes,
RELEASE(str);
}
else if (valueClass && valueClass!=PSQLA_NSNumberClass)
{
// The value class is not a NSNumber class
// it's probably a non standard class
value=[[valueClass alloc] initWithCString:bytes
length:length];
}
else
{
char valueTypeChar = '\0';