aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-23 11:34:58 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-23 11:34:58 +0000
commitb1d29fac626ddbdcfda3bc034861c3b22e39b548 (patch)
tree97af06ea1957c982cdc1ab942dd027407ad5d6a3 /Source/TableDocument.m
parenta24e9c697049bacb587835153e2ebb4764fff008 (diff)
downloadsequelpro-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/TableDocument.m')
-rw-r--r--Source/TableDocument.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 25fa50a0..4d5c5a77 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -3059,6 +3059,13 @@
[tableTabView selectTabViewItemAtIndex:3];
[mainToolbar setSelectedItemIdentifier:SPMainToolbarTableInfo];
[spHistoryControllerInstance updateHistoryEntries];
+
+ // Refresh data
+ if([self table] && [[self table] length]) {
+ [tableDataInstance resetAllData];
+ [extendedTableInfoInstance loadTable:[self table]];
+ }
+
[tableWindow makeFirstResponder:[extendedTableInfoInstance valueForKeyPath:@"tableCreateSyntaxTextView"]];
[prefs setInteger:SPTableInfoViewMode forKey:SPLastViewMode];