+2005-04-21 Helge Hess <helge.hess@skyrix.com>
+
+ * v4.5.9
+
+ * GNUmakefile.preamble: use mysql_config --cflags instead of --include,
+ the former is also available with MySQL 3.x
+
+ * MySQL4Channel.m: added a -describeResults: method to allow
+ descriptions without beautified names
+
2005-04-20 Helge Hess <helge.hess@opengroupware.org>
* MySQL4Channel.m: only warn if the character set could not be changed
# set compile flags and go
-ADDITIONAL_INCLUDE_DIRS += \
- -I.. -I../.. \
- `mysql_config --include`
+ADDITIONAL_CFLAGS += `mysql_config --cflags`
+
+ADDITIONAL_INCLUDE_DIRS += -I.. -I../..
ADDITIONAL_LIB_DIRS += \
-L../GDLAccess/$(GNUSTEP_OBJ_DIR)
return self->fields;
}
-- (NSArray *)describeResults {
+- (NSArray *)describeResults:(BOOL)_beautifyNames {
// TODO: make exception-less method
MYSQL_FIELD *mfields;
int cnt;
NSString *attrName = nil;
columnName = [NSString stringWithUTF8String:mfields[cnt].name];
- attrName = [columnName _mySQL4ModelMakeInstanceVarName];
+ attrName = _beautifyNames
+ ? [columnName _mySQL4ModelMakeInstanceVarName]
+ : columnName;
if ([[usedNames objectForKey:attrName] boolValue]) {
int cnt2 = 0;
return [result autorelease];
}
+- (NSArray *)describeResults {
+ return [self describeResults:NO];
+}
- (NSMutableDictionary *)primaryFetchAttributes:(NSArray *)_attributes
withZone:(NSZone *)_zone