Author: mguesdon
Date: Wed Apr 30 21:50:32 2014
New Revision: 37823
URL: http://svn.gna.org/viewcvs/gnustep?rev=37823&view=rev
Log:
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
Handle Custom class in newValueForNumberTypeLengthAttribute()
Modified:
libs/gdl2/trunk/ChangeLog
libs/gdl2/trunk/EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
Modified: libs/gdl2/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gdl2/trunk/ChangeLog?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- libs/gdl2/trunk/ChangeLog (original)
+++ libs/gdl2/trunk/ChangeLog Wed Apr 30 21:50:32 2014
@@ -1,3 +1,6 @@
+2014-04-30 Manuel Guesdon <[email protected]>
+ * EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
+ Handle Custom class in newValueForNumberTypeLengthAttribute()
2014-04-26 Manuel Guesdon <[email protected]>
* EOAccess/EOAdaptorChannel.m
call delegate -adaptorChannel:willPerformOperations:
Modified: libs/gdl2/trunk/EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gdl2/trunk/EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- libs/gdl2/trunk/EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
(original)
+++ libs/gdl2/trunk/EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m Wed Apr
30 21:50:32 2014
@@ -262,6 +262,13 @@
value = [PSQLA_alloc(NSDecimalNumber) initWithString: str];
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
{
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs