From 0c91f439a5b23e1b5a6d8139eb47aa5694e2925f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 24 Feb 2012 00:30:18 +0000 Subject: Improvements to SPMySQL framework: - Correctly record affected rows - Fix thread safety/autorelease issues when draining pools during fast iteration - Improve streaming result processing speed --- .../Source/SPMySQLConnection Categories/Querying & Preparation.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m') diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m index e3ce599a..cb5ce70d 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m @@ -346,9 +346,10 @@ } } - // Update error string and ID + // Update error string and ID, and the rows affected [self _updateLastErrorMessage:theErrorMessage]; [self _updateLastErrorID:theErrorID]; + lastQueryAffectedRowCount = theAffectedRowCount; // Store the result time on the response object [theResult _setQueryExecutionTime:queryExecutionTime]; -- cgit v1.2.3