From 77dc856cf9057f559203cedc49014afeafb08d43 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 21 Jul 2009 08:52:51 +0000 Subject: =?UTF-8?q?=E2=80=A2=20bug=20fixed=20for=20the=20case=20that=20tab?= =?UTF-8?q?le=20status=20returns=20NULL=20for=20number=20of=20rows:=20-=20?= =?UTF-8?q?object=20for=20key=20'Rows'=20should=20be=20a=20NSString=20not?= =?UTF-8?q?=20a=20NSNumber?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableData.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') 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"]; } -- cgit v1.2.3