aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/TableContent.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 045d75ca..5876141c 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1530,10 +1530,10 @@
- (int)fetchNumberOfRows
/*
- fetches the number of rows in the selected table using a "SELECT COUNT(*)" query and return it
+ fetches the number of rows in the selected table using a "SELECT COUNT(1)" query and return it
*/
{
- return [[[[mySQLConnection queryString:[NSString stringWithFormat:@"SELECT COUNT(*) FROM `%@`", selectedTable]] fetchRowAsArray] objectAtIndex:0] intValue];
+ return [[[[mySQLConnection queryString:[NSString stringWithFormat:@"SELECT COUNT(1) FROM `%@`", selectedTable]] fetchRowAsArray] objectAtIndex:0] intValue];
}