bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix GDL2, EONotQualifier (-sqlStringForSQLExpression:)


From: Georg Fleischmann
Subject: Fix GDL2, EONotQualifier (-sqlStringForSQLExpression:)
Date: Thu, 16 Sep 2010 18:10:30 +0800

here is another fix, which I seem to have forgotten to send last year.
It's fixing an infinite loop / stack overflow in
EOSQLQualifier.m, [EONotQualifier (EOQualifierSQLGeneration) 
-sqlStringForSQLExpression:].

The method needs to pass _qualifier as parameter, not self. Otherwise it will 
be called back with the same question again and again, ...

Best wishes,
Georg


*** EOAccess/EOSQLQualifier.m.old       2010-08-28 18:00:17.000000000 +0800
--- EOAccess/EOSQLQualifier.m   2010-09-16 17:48:22.000000000 +0800
***************
*** 524,530 ****
  
  - (NSString *)sqlStringForSQLExpression: (EOSQLExpression *)sqlExpression
  {
!   return [sqlExpression sqlStringForNegatedQualifier: self];
  }
  
  - (EOQualifier *)schemaBasedQualifierWithRootEntity: (EOEntity *)entity
--- 524,530 ----
  
  - (NSString *)sqlStringForSQLExpression: (EOSQLExpression *)sqlExpression
  {
!   return [sqlExpression sqlStringForNegatedQualifier: _qualifier];
  }
  
  - (EOQualifier *)schemaBasedQualifierWithRootEntity: (EOEntity *)entity




reply via email to

[Prev in Thread] Current Thread [Next in Thread]