aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-30 02:50:18 +0100
committerMax <post@wickenrode.com>2015-10-30 02:50:18 +0100
commitb5be6b8b785ecd25a7366afd541844ee78f4420d (patch)
treeddc7a1b2b5acc46d749199e99c2b3dc1f859c42c /Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
parentb2d798ba9282d3acf1a2d65de30849e529d4d255 (diff)
downloadsequelpro-b5be6b8b785ecd25a7366afd541844ee78f4420d.tar.gz
sequelpro-b5be6b8b785ecd25a7366afd541844ee78f4420d.tar.bz2
sequelpro-b5be6b8b785ecd25a7366afd541844ee78f4420d.zip
* Add a wrapper method for 3 repeatetly used calls
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m7
1 files changed, 2 insertions, 5 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
index 1ca2f182..452844ab 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
@@ -503,9 +503,7 @@ asm(".desc ___crashreporter_info__, 0x10");
keepAlivePingFailures = 0;
// Clear the connection error record
- [self _updateLastErrorID:NSNotFound];
- [self _updateLastErrorMessage:nil];
- [self _updateLastSqlstate:nil];
+ [self _updateLastErrorInfos];
// Unlock the connection
[self _unlockConnection];
@@ -1028,7 +1026,6 @@ asm(".desc ___crashreporter_info__, 0x10");
*/
- (void)_validateThreadSetup
{
-
// Check to see whether the handler has already been installed
if (pthread_getspecific(mySQLThreadInitFlagKey)) return;
@@ -1039,7 +1036,7 @@ asm(".desc ___crashreporter_info__, 0x10");
pthread_setspecific(mySQLThreadInitFlagKey, &mySQLThreadFlag);
// Set up the notification handler to deregister it
- [(NSNotificationCenter *)[NSNotificationCenter defaultCenter] addObserver:[self class] selector:@selector(_removeThreadVariables:) name:NSThreadWillExitNotification object:[NSThread currentThread]];
+ [[NSNotificationCenter defaultCenter] addObserver:[self class] selector:@selector(_removeThreadVariables:) name:NSThreadWillExitNotification object:[NSThread currentThread]];
}
/**