We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400af7c commit 44057bdCopy full SHA for 44057bd
LKDBHelper/Helper/LKDBHelper.m
@@ -949,7 +949,7 @@ - (NSMutableArray*)searchWithSQL:(NSString*)sql toClass:(Class)modelClass
949
if ([sql hasSuffix:@" @t"]) {
950
sql = [sql stringByAppendingString:@" "];
951
}
952
- if ([sql componentsSeparatedByString:@" from "].count == 2 && [sql rangeOfString:@" join "].length > 0) {
+ if ([sql componentsSeparatedByString:@" from "].count == 2 && [sql rangeOfString:@" join "].length == 0) {
953
sql = [sql stringByReplacingOccurrencesOfString:@" from " withString:[NSString stringWithFormat:@",%@.rowid from ", replaceString]];
954
955
0 commit comments