Skip to content

Commit

Permalink
Fixed bug where NSFNotEqualTo returned all values
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmamis committed Mar 5, 2015
1 parent e96eb72 commit ccbe3bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Public/NSFNanoSearch.m
Expand Up @@ -835,7 +835,7 @@ + (NSString *)_querySegmentForAttributeColumnWithValue:(id)anAttributeValue matc
[segment appendString:value];
break;
case NSFNotEqualTo:
value = [[NSMutableString alloc]initWithFormat:@"((%@ <> '%@' AND %@ <> '%@') OR (%@ GLOB '%@.*' AND %@ <> '%@') OR (%@ GLOB '*.%@.*' AND %@ <> '%@') OR (%@ GLOB '*.%@' AND %@ <> '%@'))", NSFAttribute, anAttributeValue, NSFValue, aValue, NSFAttribute, anAttributeValue, NSFValue, aValue, NSFAttribute, anAttributeValue, NSFValue, aValue, NSFAttribute, anAttributeValue, NSFValue, aValue];
value = [[NSMutableString alloc]initWithFormat:@"((%@ == '%@' AND %@ <> '%@') OR (%@ GLOB '%@.*' AND %@ <> '%@') OR (%@ GLOB '*.%@.*' AND %@ <> '%@') OR (%@ GLOB '*.%@' AND %@ <> '%@'))", NSFAttribute, anAttributeValue, NSFValue, aValue, NSFAttribute, anAttributeValue, NSFValue, aValue, NSFAttribute, anAttributeValue, NSFValue, aValue, NSFAttribute, anAttributeValue, NSFValue, aValue];
[segment appendString:value];

break;
Expand Down
21 changes: 21 additions & 0 deletions NanoStore.podspec.json
@@ -0,0 +1,21 @@
{
"name": "NanoStore",
"version": "2.7.7",
"license": "BSD",
"summary": "NanoStore is an open source, lightweight schema-less local key-value document store written in Objective-C for Mac OS X and iOS.",
"homepage": "https://github.com/tciuro/NanoStore",
"authors": {
"Tito Ciuro": "tciuro@mac.com"
},
"source": {
"git": "https://github.com/tciuro/NanoStore.git",
"tag": "2.7.7"
},
"source_files": "Classes/**/*.{h,m}",
"platforms": {
"ios": "5.0",
"osx": "10.8"
},
"libraries": "sqlite3",
"requires_arc": true
}

0 comments on commit ccbe3bd

Please sign in to comment.