From ada181f6fe5b010a5ab56030d16b35e92e58af10 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 6 Oct 2012 11:33:24 +0000 Subject: - Improve connection error detecting in SPMySQLFramework --- .../Source/SPMySQLConnection Categories/Querying & Preparation.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Frameworks/SPMySQLFramework/Source') 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]; -- cgit v1.2.3