aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-07-21 08:52:51 +0000
committerBibiko <bibiko@eva.mpg.de>2009-07-21 08:52:51 +0000
commit77dc856cf9057f559203cedc49014afeafb08d43 (patch)
tree83daea995210c3f6c637a30e2a0d613039e873ed /Source
parent8c47108f6de8d04fa7d1cf7dbfc8a4fd423979f5 (diff)
downloadsequelpro-77dc856cf9057f559203cedc49014afeafb08d43.tar.gz
sequelpro-77dc856cf9057f559203cedc49014afeafb08d43.tar.bz2
sequelpro-77dc856cf9057f559203cedc49014afeafb08d43.zip
• bug fixed for the case that table status returns NULL for number of rows:
- object for key 'Rows' should be a NSString not a NSNumber
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableData.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index c8dbe7b0..69b2a336 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -754,7 +754,7 @@
if([[status objectForKey:@"Rows"] isKindOfClass:[NSNull class]]) {
tableStatusResult = [mySQLConnection queryString:[NSString stringWithFormat:@"SELECT COUNT(*) FROM %@", [escapedTableName backtickQuotedString] ]];
if ([[mySQLConnection getLastErrorMessage] isEqualToString:@""])
- [status setObject:[NSNumber numberWithLongLong:[[[tableStatusResult fetchRowAsArray] objectAtIndex:0] longLongValue]] forKey:@"Rows"];
+ [status setObject:[[tableStatusResult fetchRowAsArray] objectAtIndex:0] forKey:@"Rows"];
}