aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPServerVariablesController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-03-18 20:05:36 +0000
committerstuconnolly <stuart02@gmail.com>2012-03-18 20:05:36 +0000
commit524e8c356b4074f5be5933b0551374a130a8f6d1 (patch)
tree0dab40735f2d9484930050cd08376cbf15e4ea55 /Source/SPServerVariablesController.m
parentbe3263f8158cb6f3dfa1005f49beefa7e494b852 (diff)
downloadsequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.tar.gz
sequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.tar.bz2
sequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.zip
Bring outline view branch up to date with trunk (r3471:r3517).
Diffstat (limited to 'Source/SPServerVariablesController.m')
-rw-r--r--Source/SPServerVariablesController.m12
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/SPServerVariablesController.m b/Source/SPServerVariablesController.m
index 5b9114d8..50f03e31 100644
--- a/Source/SPServerVariablesController.m
+++ b/Source/SPServerVariablesController.m
@@ -26,6 +26,7 @@
#import "SPServerVariablesController.h"
#import "SPDatabaseDocument.h"
#import "SPAppController.h"
+#import "SPMySQL.h"
@interface SPServerVariablesController (PrivateAPI)
@@ -287,20 +288,13 @@
*/
- (void)_getDatabaseServerVariables
{
- NSUInteger i = 0;
// Get processes
- MCPResult *serverVariables = [connection queryString:@"SHOW VARIABLES"];
+ SPMySQLResult *serverVariables = [connection queryString:@"SHOW VARIABLES"];
[serverVariables setReturnDataAsStrings:YES];
- if ([serverVariables numOfRows]) [serverVariables dataSeek:0];
-
[variables removeAllObjects];
-
- for (i = 0; i < [serverVariables numOfRows]; i++)
- {
- [variables addObject:[serverVariables fetchRowAsDictionary]];
- }
+ [variables addObjectsFromArray:[serverVariables getAllRows]];
}
/**