diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-23 19:40:59 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-23 19:40:59 +0000 |
commit | 565b2a5da5e126b204b7733259aa4b4b65da21e3 (patch) | |
tree | f1d98dd641ae03d693f140b8f67c741d0f7191e2 /Source/TableContent.m | |
parent | c636a4d36f0fd1b3749ee6de77452e9491030313 (diff) | |
download | sequelpro-565b2a5da5e126b204b7733259aa4b4b65da21e3.tar.gz sequelpro-565b2a5da5e126b204b7733259aa4b4b65da21e3.tar.bz2 sequelpro-565b2a5da5e126b204b7733259aa4b4b65da21e3.zip |
• corrected table history entries for operator BETWEEN (misunderstood logic firstly)
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index a60a8582..ca8a3ea5 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -74,7 +74,9 @@ filterFieldToRestore = nil; filterComparisonToRestore = nil; filterValueToRestore = nil; - betweenFilterValueToRestore = nil; + firstBetweenValueToRestore = nil; + secondBetweenValueToRestore = nil; + isFiltered = NO; isLimited = NO; @@ -324,7 +326,8 @@ if (filterComparisonToRestore) [compareField selectItemWithTitle:filterComparisonToRestore]; [self toggleFilterField:self]; if (filterValueToRestore) [argumentField setStringValue:filterValueToRestore]; - if (betweenFilterValueToRestore) [betweenTextField setStringValue:betweenFilterValueToRestore]; + if (firstBetweenValueToRestore) [firstBetweenField setStringValue:firstBetweenValueToRestore]; + if (secondBetweenValueToRestore) [secondBetweenField setStringValue:secondBetweenValueToRestore]; } } @@ -1746,7 +1749,8 @@ [[compareField selectedItem] title], @"filterComparison", [NSNumber numberWithInt:[[compareField selectedItem] tag]], @"filterComparisonTag", [argumentField stringValue], @"filterValue", - [betweenTextField stringValue], @"betweenFilterValue", + [firstBetweenField stringValue], @"firstBetweenValue", + [secondBetweenField stringValue], @"secondBetweenField", nil]; return theDictionary; @@ -1799,7 +1803,8 @@ if (filterFieldToRestore) [filterFieldToRestore release], filterFieldToRestore = nil; if (filterComparisonToRestore) [filterComparisonToRestore release], filterComparisonToRestore = nil; if (filterValueToRestore) [filterValueToRestore release], filterValueToRestore = nil; - if (betweenFilterValueToRestore) [betweenFilterValueToRestore release], betweenFilterValueToRestore = nil; + if (firstBetweenValueToRestore) [firstBetweenValueToRestore release], firstBetweenValueToRestore = nil; + if (secondBetweenValueToRestore) [secondBetweenValueToRestore release], secondBetweenValueToRestore = nil; if (filterSettings) { if ([filterSettings objectForKey:@"filterField"]) @@ -1808,8 +1813,10 @@ filterComparisonToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"filterComparison"]]; if ([filterSettings objectForKey:@"filterValue"]) filterValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"filterValue"]]; - if ([filterSettings objectForKey:@"betweenFilterValue"]) - betweenFilterValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"filterValue"]]; + if ([filterSettings objectForKey:@"firstBetweenField"]) + firstBetweenValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"firstBetweenField"]]; + if ([filterSettings objectForKey:@"secondBetweenField"]) + secondBetweenValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"secondBetweenField"]]; } } @@ -2372,7 +2379,8 @@ if (filterFieldToRestore) filterFieldToRestore = nil; if (filterComparisonToRestore) filterComparisonToRestore = nil; if (filterValueToRestore) filterValueToRestore = nil; - if (betweenFilterValueToRestore) betweenFilterValueToRestore = nil; + if (firstBetweenValueToRestore) firstBetweenValueToRestore = nil; + if (secondBetweenValueToRestore) secondBetweenValueToRestore = nil; [super dealloc]; } |