aboutsummaryrefslogtreecommitdiffstats
path: root/TablesList.m
diff options
context:
space:
mode:
Diffstat (limited to 'TablesList.m')
-rw-r--r--TablesList.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/TablesList.m b/TablesList.m
index 32104d9b..500ac349 100644
--- a/TablesList.m
+++ b/TablesList.m
@@ -52,9 +52,8 @@ loads all table names in array tables and reload the tableView
[tables addObject:NSLocalizedString(@"TABLES",@"header for table list")];
theResult = (CMMCPResult *)[mySQLConnection listTables];
-
+ if ([theResult numOfRows]) [theResult dataSeek:0];
for ( i = 0 ; i < [theResult numOfRows] ; i++ ) {
- [theResult dataSeek:i];
[tables addObject:[[theResult fetchRowAsArray] objectAtIndex:0]];
}