Hi,
here is the implementation of [EONotQualifier -
schemaBasedQualifierWithRootEntity:]
and a fix in [EOSQLExpression -sqlStringForNegatedQualifier:] to make
it work.
* EOAccess/EOSQLQualifier ([EONotQualifier -
schemaBasedQualifierWithRootEntity:]): implemented
* EOAccess/EOSQLExpression (-sqlStringForNegatedQualifier:): get
sqlStringForSQLExpression of the right qualifier
Best wishes,
Georg Fleischmann
*** EOAccess/EOSQLQualifier.m.old Tue Jan 22 21:57:07 2008
--- EOAccess/EOSQLQualifier.m Sun Jul 19 12:16:11 2009
***************
*** 495,505 ****
- (EOQualifier *)schemaBasedQualifierWithRootEntity: (EOEntity *)
entity
{
! //TODO
! [self notImplemented: _cmd];
! return nil;
}
@end
--- 495,520 ----
- (EOQualifier *)schemaBasedQualifierWithRootEntity: (EOEntity *)
entity
{
! EOQualifier *returnedQualifier = self;
! EOFLOGObjectFnStart();
!
! EOQualifier *schemaBasedQualifier =
! [(id <EOQualifierSQLGeneration>)_qualifier
! schemaBasedQualifierWithRootEntity:
! entity];
!
! // If we've got a different qualifier, return a new EONOTQualifier
! if (schemaBasedQualifier != _qualifier)
! {
! returnedQualifier = [[self class]
!
qualifierWithQualifier:schemaBasedQualifier];
! }
!
! EOFLOGObjectFnStop();
! return returnedQualifier;
}
+
@end
*** EOAccess/EOSQLExpression.m.old Thu Feb 19 19:15:22 2009
--- EOAccess/EOSQLExpression.m Sun Jul 19 11:34:12 2009
***************
*** 1432,1438 ****
EOFLOGObjectFnStartCond(@"EOSQLExpression");
! sqlQual = [(id)qualifier sqlStringForSQLExpression: self];
if (sqlQual)
sqlQual = [NSString stringWithFormat:@"not (%@)", sqlQual];
--- 1432,1439 ----
EOFLOGObjectFnStartCond(@"EOSQLExpression");
! sqlQual = [(id)[(EONotQualifier*)qualifier qualifier]
! sqlStringForSQLExpression: self];
if (sqlQual)
sqlQual = [NSString stringWithFormat:@"not (%@)", sqlQual];
_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep