From 7c56b11d8bdead768e86643a4b61e3f293820330 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 9 Mar 2017 03:39:29 +0100 Subject: * Turn `-[SPMySQLConnection checkConnectionIfNecessary]` into a public method, since it is actually the preferable way to `-[SPMySQLConnection checkConnection]` (which forces network IO in a new thread each time) * Change `-[SPDatabaseStructure queryDbStructureWithUserInfo:]` doing a forced connection check inside a tight loop (#2306) --- Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h') diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h index 15b809f1..343d0d36 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h @@ -188,6 +188,7 @@ - (BOOL)isConnected; - (BOOL)isConnectedViaSSL; - (BOOL)checkConnection; +- (BOOL)checkConnectionIfNecessary; - (double)timeConnected; - (BOOL)userTriggeredDisconnect; -- cgit v1.2.3