aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CMMCPConnection.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/CMMCPConnection.m b/Source/CMMCPConnection.m
index f27eee6b..6e00357c 100644
--- a/Source/CMMCPConnection.m
+++ b/Source/CMMCPConnection.m
@@ -40,9 +40,11 @@ static void forcePingTimeout(int signalNumber);
if( mConnected ) {
CMMCPResult *theResult;
theResult = [self queryString:@"SHOW VARIABLES WHERE Variable_name = 'version'"];
- if ([theResult numOfRows])
- [theResult dataSeek:0];
- serverVersionString = [NSString stringWithString:[[theResult fetchRowAsDictionary] objectForKey:@"Value"]];
+ if ([theResult numOfRows]) {
+ [theResult dataSeek:0];
+ serverVersionString = [NSString stringWithString:[[theResult fetchRowAsArray] objectAtIndex:1]];
+ [theResult dataSeek:[theResult numOfRows]];
+ }
}
}
@end