aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-08-30 14:28:59 +0000
committerrowanbeentje <rowan@beent.je>2010-08-30 14:28:59 +0000
commit4c5b8f2d34e9f15e65bf9bff03b5505240ee461e (patch)
tree714bac45f7f648499a55f6fb80d6939a782d31b5 /Source/SPTableContent.m
parent505ba71dc260901a445351294923da98d34661db (diff)
downloadsequelpro-4c5b8f2d34e9f15e65bf9bff03b5505240ee461e.tar.gz
sequelpro-4c5b8f2d34e9f15e65bf9bff03b5505240ee461e.tar.bz2
sequelpro-4c5b8f2d34e9f15e65bf9bff03b5505240ee461e.zip
- When a table content page reload loads no data, and so triggers a reload of the first page, the previous row count was not correctly reset, thus sometimes triggering an exception. This correctly resets the count, addressing http://spbug.com/l/558
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index a57973c8..87f76701 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -647,6 +647,7 @@
// If the result is empty, and a late page is selected, reset the page
if (!fullTableReloadRequired && [prefs boolForKey:SPLimitResults] && queryStringBeforeLimit && !tableRowsCount && ![mySQLConnection queryCancelled]) {
contentPage = 1;
+ previousTableRowsCount = tableRowsCount;
queryString = [NSMutableString stringWithFormat:@"%@ LIMIT 0,%ld", queryStringBeforeLimit, (long)[prefs integerForKey:SPLimitResultsValue]];
[self setUsedQuery:queryString];
streamingResult = [[mySQLConnection streamingQueryString:queryString] retain];