aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-10-06 11:33:24 +0000
committerrowanbeentje <rowan@beent.je>2012-10-06 11:33:24 +0000
commitada181f6fe5b010a5ab56030d16b35e92e58af10 (patch)
tree55ce310b7189a2ede6da2c8da76fa1f9f666918e
parent6f4c53ad6f926ef3bd7598edff5a6a0b3ca80cbf (diff)
downloadsequelpro-ada181f6fe5b010a5ab56030d16b35e92e58af10.tar.gz
sequelpro-ada181f6fe5b010a5ab56030d16b35e92e58af10.tar.bz2
sequelpro-ada181f6fe5b010a5ab56030d16b35e92e58af10.zip
- Improve connection error detecting in SPMySQLFramework
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m
index 9280c156..bafa1e6e 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m
@@ -304,7 +304,9 @@
// Query has failed - check the connection
[self _unlockConnection];
if (![self checkConnection]) {
- break;
+ [self _updateLastErrorMessage:theErrorMessage];
+ [self _updateLastErrorID:theErrorID];
+ return nil;
}
[self _lockConnection];