aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-09-29 22:11:44 +0000
committerrowanbeentje <rowan@beent.je>2011-09-29 22:11:44 +0000
commitc9aad8326e53f9544bc10e9bae6bb2a7697cbffa (patch)
treeaf50bb641464fbca695e4e2e73e5e4e3be6a87e8 /Source/SPDatabaseDocument.h
parent8beaf3610a50d8e0735301f9630db61fa182db74 (diff)
downloadsequelpro-c9aad8326e53f9544bc10e9bae6bb2a7697cbffa.tar.gz
sequelpro-c9aad8326e53f9544bc10e9bae6bb2a7697cbffa.tar.bz2
sequelpro-c9aad8326e53f9544bc10e9bae6bb2a7697cbffa.zip
- Update database encoding routines to cache the database encoding, preventing repeated calls when navigating tables using "default" encoding, or views
- Ensure the database encoding is correctly updated when new databases are selected. This addresses Issue #1201
Diffstat (limited to 'Source/SPDatabaseDocument.h')
-rw-r--r--Source/SPDatabaseDocument.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h
index d79610e9..b56991f5 100644
--- a/Source/SPDatabaseDocument.h
+++ b/Source/SPDatabaseDocument.h
@@ -167,6 +167,7 @@ SPDatabaseData, SPTablesList, SPTableStructure, SPTableContent, SPTableData, SPS
NSString *selectedDatabase;
NSString *mySQLVersion;
+ NSString *selectedDatabaseEncoding;
#ifndef SP_REFACTOR /* ivars */
NSUserDefaults *prefs;
NSMutableArray *nibObjectsToRelease;
@@ -325,6 +326,7 @@ SPDatabaseData, SPTablesList, SPTableStructure, SPTableContent, SPTableData, SPS
// Encoding methods
- (void)setConnectionEncoding:(NSString *)mysqlEncoding reloadingViews:(BOOL)reloadViews;
- (NSString *)databaseEncoding;
+- (void)detectDatabaseEncoding;
- (IBAction)chooseEncoding:(id)sender;
- (BOOL)supportsEncoding;
- (void)updateEncodingMenuWithSelectedEncoding:(NSNumber *)encodingTag;