diff options
-rw-r--r-- | Source/SPServerVariablesController.m | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Source/SPServerVariablesController.m b/Source/SPServerVariablesController.m index 4cb85e5c..47e9f3bf 100644 --- a/Source/SPServerVariablesController.m +++ b/Source/SPServerVariablesController.m @@ -26,9 +26,10 @@ #import "SPServerVariablesController.h" #import "SPDatabaseDocument.h" #import "SPAppController.h" + #import <SPMySQL/SPMySQL.h> -@interface SPServerVariablesController (PrivateAPI) +@interface SPServerVariablesController () - (void)_getDatabaseServerVariables; - (void)_updateServerVariablesFilterForFilterString:(NSString *)filterString; @@ -266,31 +267,16 @@ } #pragma mark - - -/** - * Dealloc - */ -- (void)dealloc -{ - [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:SPUseMonospacedFonts]; - - [variables release], variables = nil; - - [super dealloc]; -} - -@end - -@implementation SPServerVariablesController (PrivateAPI) +#pragma mark Private API /** * Gets the database's current server variables. */ - (void)_getDatabaseServerVariables { - - // Get processes + // Get variables SPMySQLResult *serverVariables = [connection queryString:@"SHOW VARIABLES"]; + [serverVariables setReturnDataAsStrings:YES]; [variables removeAllObjects]; @@ -393,4 +379,18 @@ } } +#pragma mark - + +/** + * Dealloc + */ +- (void)dealloc +{ + [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:SPUseMonospacedFonts]; + + [variables release], variables = nil; + + [super dealloc]; +} + @end |