diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-23 11:34:58 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-23 11:34:58 +0000 |
commit | b1d29fac626ddbdcfda3bc034861c3b22e39b548 (patch) | |
tree | 97af06ea1957c982cdc1ab942dd027407ad5d6a3 /Source/TableSource.m | |
parent | a24e9c697049bacb587835153e2ebb4764fff008 (diff) | |
download | sequelpro-b1d29fac626ddbdcfda3bc034861c3b22e39b548.tar.gz sequelpro-b1d29fac626ddbdcfda3bc034861c3b22e39b548.tar.bz2 sequelpro-b1d29fac626ddbdcfda3bc034861c3b22e39b548.zip |
• Reset AUTO_INCREMENT in Table Info Pane uses inline entering of the new value (no sheet)
• "Delete all records" confirmation sheet shows a checkbox "Reset AUTO_INCREMENT after deletion" if PRI key is given for that table
• minimized table data querying for auto_inc
• optimized auto_inc change notification
• if user changes tabVIew to Table Info Pane update data in beforehand
• TRUNCATE query updates auto_inc value as well in TABLE INFORMATION
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r-- | Source/TableSource.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m index 6004a4ac..655dffc1 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -601,10 +601,11 @@ closes the keySheet [NSString stringWithFormat:NSLocalizedString(@"An error occurred while trying to reset AUTO_INCREMENT of table '%@'.\n\nMySQL said: %@", @"error resetting auto_increment informative message"), selTable, [mySQLConnection getLastErrorMessage]]); } else { - [tableDataInstance resetAllData]; - [tablesListInstance setStatusRequiresReload:YES]; - [self loadTable:selectedTable]; - [extendedTableInfoInstance loadTable:selTable]; + [tableDataInstance resetStatusData]; + if([[tableDocumentInstance valueForKeyPath:@"tableTabView"] indexOfTabViewItem:[[tableDocumentInstance valueForKeyPath:@"tableTabView"] selectedTabViewItem]] == 3) { + [tableDataInstance resetAllData]; + [extendedTableInfoInstance loadTable:selTable]; + } [tableInfoInstance tableChanged:nil]; } } |