aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-05-13 22:40:01 +0000
committerrowanbeentje <rowan@beent.je>2012-05-13 22:40:01 +0000
commit25238e46acd039cdaf410f31b2f064f2ea3db057 (patch)
treea7554b15e70d79d59bd82c77cfc809e44fb6fdcf /Frameworks
parenta181f7f7ea4548bf2a41a97b814e9cd8f45b2b08 (diff)
downloadsequelpro-25238e46acd039cdaf410f31b2f064f2ea3db057.tar.gz
sequelpro-25238e46acd039cdaf410f31b2f064f2ea3db057.tar.bz2
sequelpro-25238e46acd039cdaf410f31b2f064f2ea3db057.zip
- Return an autoreleased copy of the error string when requested, instead of a reference to the retained error string to avoid any overrelease errors later affecting the framework
Diffstat (limited to 'Frameworks')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m
index 0af0684a..3b2614f1 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m
@@ -434,7 +434,8 @@
*/
- (NSString *)lastErrorMessage
{
- return queryErrorMessage;
+ if (!queryErrorMessage) return nil;
+ return [NSString stringWithString:queryErrorMessage];
}
/**