aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 9dffd962..2c6136a3 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -336,6 +336,10 @@
nil, nil, [NSApp mainWindow], self, nil, nil, nil,
[NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving the information for table '%@'. Please try again.\n\nMySQL said: %@", @"error retrieving table information informative message"),
tableName, [mySQLConnection getLastErrorMessage]]);
+ // If the current table doesn't exist anymore reload table list
+ if([mySQLConnection getLastErrorID] == 1146) {
+ [tableListInstance updateTables:nil];
+ }
}
return nil;