aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMMCPConnection.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMMCPConnection.m')
-rw-r--r--Source/CMMCPConnection.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CMMCPConnection.m b/Source/CMMCPConnection.m
index b9bffd9b..df71ff82 100644
--- a/Source/CMMCPConnection.m
+++ b/Source/CMMCPConnection.m
@@ -266,6 +266,7 @@ static void forcePingTimeout(int signalNumber);
thePass = NULL;
if (theRet != mConnection) {
[self setLastErrorMessage:nil];
+ lastQueryErrorId = mysql_errno(mConnection);
return mConnected = NO;
}
@@ -278,6 +279,7 @@ static void forcePingTimeout(int signalNumber);
if (![self fetchMaxAllowedPacket]) {
[self setLastErrorMessage:nil];
+ lastQueryErrorId = mysql_errno(mConnection);
return mConnected = NO;
}
@@ -688,6 +690,7 @@ static void forcePingTimeout(int signalNumber);
return YES;
}
[self setLastErrorMessage:nil];
+ lastQueryErrorId = mysql_errno(mConnection);
if (connectionTunnel) {
[connectionTunnel disconnect];
[delegate setTitlebarStatus:@"SSH Disconnected"];