+2005-07-29 Helge Hess <helge.hess@skyrix.com>
+
+ * v4.5.12
+
+ * NSData+MySQL4Val.m: fixed handling of NSData rows (proper init was
+ missing)
+
+ * MySQL4Values.m: improved logging of unsupported types
+
2005-07-27 Helge Hess <helge.hess@skyrix.com>
* fixed gcc 4.0 warnings (char signedness) (v4.5.11)
[self release];
return nil;
}
- NSLog(@"WARNING(%s): falling back to NSString for MySQL4 value!",
- __PRETTY_FUNCTION__);
+ NSLog(@"WARNING(%s): %@ falling back to NSString for MySQL4 value"
+ @" (type %i, 0x%08X, len=%d)",
+ __PRETTY_FUNCTION__, NSStringFromClass([self class]),
+ _type, _v, _len);
[self release];
return [[NSString alloc] initWithMySQL4Type:_type value:_v length:_len];
@implementation NSData(MySQL4Values)
+- (id)initWithMySQL4Type:(int)_type value:(const void *)_v length:(int)_len {
+ // Note: never used on lF (NSTemporaryString!)
+ if (_v == NULL) {
+ [self release];
+ return nil;
+ }
+
+ return [self initWithBytes:_v length:_len];
+}
+
+#if 0 // unused?
- (id)initWithMySQL4Int:(int)_value {
return [self initWithBytes:&_value length:sizeof(int)];
}
- (id)initWithMySQL4Data:(const void *)_value length:(int)_length {
return [self initWithBytes:_value length:_length];
}
+#endif
- (NSString *)stringValueForMySQL4Type:(NSString *)_type
attribute:(EOAttribute *)_attribute
Note: this is far from being complete! The adaptor is currently a fork of
the MySQL4 adaptor.
+http://sql-info.de/mysql/gotchas.html
+
TODO
====
- implement
# Version file
-SUBMINOR_VERSION:=11
+SUBMINOR_VERSION:=12