From 2f2aafb4f5675282a37d16dce96027706096df40 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 31 Oct 2015 02:54:59 +0100 Subject: * Basic math is hard sometimes (fixes an issue introduced by me in b2d798ba9282d3acf1a2d65de30849e529d4d255) * Fix an exception that could occur when trying to view a damaged table * Fix a theoretical use-after-free issue by a wrongly structured retain/release in a setter --- .../SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Frameworks') diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m index 01410eb5..5925d138 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m @@ -87,7 +87,7 @@ { unsigned long myver = aMajorVersion * 10000 + aMinorVersion * 100 + aReleaseVersion; - return (myver >= serverVersionNumber); + return (serverVersionNumber >= myver); } #pragma mark - -- cgit v1.2.3