aboutsummaryrefslogtreecommitdiffstats
path: root/CustomQuery.m
diff options
context:
space:
mode:
Diffstat (limited to 'CustomQuery.m')
-rw-r--r--CustomQuery.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/CustomQuery.m b/CustomQuery.m
index 2dd43fc4..e5f48e7b 100644
--- a/CustomQuery.m
+++ b/CustomQuery.m
@@ -85,8 +85,8 @@ sets the tableView columns corresponding to the mysql-result
if ( nil != theResult )
{
int r = [theResult numOfRows];
+ if (r) [theResult dataSeek:0];
for ( i = 0 ; i < r ; i++ ) {
- [theResult dataSeek:i];
[tempResult addObject:[theResult fetchRowAsArray]];
}
queryResult = [[NSArray arrayWithArray:tempResult] retain];