+2005-04-21 Helge Hess <helge.hess@opengroupware.org>
+
+ * EOAdaptorChannel.[hm]: added -describeResults: as a public method,
+ implemented -describeResults based on that (adaptors now need to
+ override -describeResults:) (v4.5.50)
+
2005-04-12 Helge Hess <helge.hess@opengroupware.org>
* v4.5.49
describedByQualifier:(EOSQLQualifier *)aQualifier
fetchOrder:(NSArray *)aFetchOrder
lock:(BOOL)aLockFlag;
-- (NSArray*)describeResults; // override
+- (NSArray *)describeResults:(BOOL)_beautifyNames; // override
+- (NSArray *)describeResults;
- (NSMutableDictionary*)fetchAttributes:(NSArray *)attributes
withZone:(NSZone *)zone;
- (BOOL)isFetchInProgress;
return nil;
}
-- (NSArray *)describeResults {
+- (NSArray *)describeResults:(BOOL)_beautifyNames {
[self subclassResponsibility:_cmd];
return nil;
}
+- (NSArray *)describeResults {
+ return [self describeResults:YES];
+}
- (NSMutableDictionary *)fetchAttributes:(NSArray *)attributes
withZone:(NSZone *)_zone
# version file
-SUBMINOR_VERSION:=49
+SUBMINOR_VERSION:=50
+2005-04-21 Helge Hess <helge.hess@opengroupware.org>
+
+ * PostgreSQL72Channel.m: changed for -describeResults: API (v4.5.41)
+
2005-01-14 Helge Hess <helge.hess@opengroupware.org>
* EOAttribute+PostgreSQL72.m: map PG oid's to NSStrings (avoids issues
#ifndef ___PostgreSQL72_Channel_H___
#define ___PostgreSQL72_Channel_H___
-#import <GDLAccess/EOAdaptorChannel.h>
+#include <GDLAccess/EOAdaptorChannel.h>
#include <libpq-fe.h>
@class NSArray, NSString, NSMutableDictionary;
- (void)setDebugEnabled:(BOOL)_flag;
- (BOOL)isDebugEnabled;
-- (BOOL)isOpen;
-- (BOOL)openChannel;
-- (void)closeChannel;
-
-- (NSMutableDictionary *)primaryFetchAttributes:(NSArray *)_attributes
- withZone:(NSZone *)_zone;
-
-- (BOOL)evaluateExpression:(NSString *)_expression;
-
-// cancelFetch is always called to terminate a fetch
-// (even by primaryFetchAttributes)
-// it frees all fetch-local variables
-- (void)cancelFetch;
-
-// uses dataFormat type information to create EOAttribute objects
-- (NSArray *)describeResults;
-
@end
@interface NSObject(Sybase10ChannelDelegate)
@end
-#endif
+#endif /* ___PostgreSQL72_Channel_H___ */
[super cancelFetch];
}
-- (NSArray *)describeResults {
+- (NSArray *)describeResults:(BOOL)_beautifyNames {
int cnt;
NSMutableArray *result = nil;
NSMutableDictionary *usedNames = nil;
columnName =
[[StringClass alloc] initWithCString:self->fieldInfo[cnt].name];
- attrName = [columnName _pgModelMakeInstanceVarName];
+ attrName = _beautifyNames
+ ? [columnName _pgModelMakeInstanceVarName]
+ : columnName;
if ([[usedNames objectForKey:attrName] boolValue]) {
// TODO: move name generation code to different method!
# version file
-SUBMINOR_VERSION:=40
+SUBMINOR_VERSION:=41
+
+# v4.5.41 requires libGDLAccess v4.5.50
+2005-04-21 Helge Hess <helge.hess@opengroupware.org>
+
+ * v4.5.17
+
+ * NSString+SQLiteVal.m: fixed a gcc 3.4.3 warning
+
+ * SQLiteChannel.m: changed for -describeResults: API
+
2005-04-12 Helge Hess <helge.hess@opengroupware.org>
* SQLiteChannel.m: bumped max connection count from 15 to 150 (v4.5.16)
if (EOExprClass == Nil) EOExprClass = [EOQuotedExpression class];
expr = [[EOExprClass alloc] initWithExpression:expr
quote:@"'" escape:@"\\'"];
- s = [[expr expressionValueForContext:nil] retain];
+ s = [[(EOQuotedExpression *)expr expressionValueForContext:nil] retain];
[expr release];
return [s autorelease];
}
#ifndef ___SQLite_Channel_H___
#define ___SQLite_Channel_H___
-#import <GDLAccess/EOAdaptorChannel.h>
+#include <GDLAccess/EOAdaptorChannel.h>
@class NSArray, NSString, NSMutableDictionary;
- (void)setDebugEnabled:(BOOL)_flag;
- (BOOL)isDebugEnabled;
-- (BOOL)isOpen;
-- (BOOL)openChannel;
-- (void)closeChannel;
-
-- (NSMutableDictionary *)primaryFetchAttributes:(NSArray *)_attributes
- withZone:(NSZone *)_zone;
-
-- (BOOL)evaluateExpression:(NSString *)_expression;
-
-// cancelFetch is always called to terminate a fetch
-// (even by primaryFetchAttributes)
-// it frees all fetch-local variables
-- (void)cancelFetch;
-
-// uses dataFormat type information to create EOAttribute objects
-- (NSArray *)describeResults;
-
@end
@interface NSObject(Sybase10ChannelDelegate)
[super cancelFetch];
}
-- (NSArray *)describeResults {
+- (NSArray *)describeResults:(BOOL)_beautifyNames {
// TODO: make exception-less method
int cnt, fieldCount;
NSMutableArray *result = nil;
columnName = [NSString stringWithCString:
sqlite3_column_name(self->statement, cnt)];
- attrName = [columnName _sqlite3ModelMakeInstanceVarName];
+ attrName = _beautifyNames
+ ? [columnName _sqlite3ModelMakeInstanceVarName]
+ : columnName;
if ([[usedNames objectForKey:attrName] boolValue]) {
int cnt2 = 0;
# Version file
-SUBMINOR_VERSION:=16
+SUBMINOR_VERSION:=17
+
+# v4.5.17 requires libGDLAccess v4.5.50