aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/PGPostgresConnection.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-06-18 13:38:26 +0000
committerstuconnolly <stuart02@gmail.com>2013-06-18 13:38:26 +0000
commit80c152501303c0ed7bd530f5e05bc7e5a6fba7f5 (patch)
tree4b1e7106a4b32a21a9aa9e050c9851908949484b /Frameworks/PostgresKit/Source/PGPostgresConnection.m
parent33dbe8d35c3e681c5a8cfd223be50ae7c769cf15 (diff)
downloadsequelpro-80c152501303c0ed7bd530f5e05bc7e5a6fba7f5.tar.gz
sequelpro-80c152501303c0ed7bd530f5e05bc7e5a6fba7f5.tar.bz2
sequelpro-80c152501303c0ed7bd530f5e05bc7e5a6fba7f5.zip
PostgresKit: Add a new property to return the number of rows affected by the last executed query.
Diffstat (limited to 'Frameworks/PostgresKit/Source/PGPostgresConnection.m')
-rw-r--r--Frameworks/PostgresKit/Source/PGPostgresConnection.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Frameworks/PostgresKit/Source/PGPostgresConnection.m b/Frameworks/PostgresKit/Source/PGPostgresConnection.m
index 920fc626..600be9a0 100644
--- a/Frameworks/PostgresKit/Source/PGPostgresConnection.m
+++ b/Frameworks/PostgresKit/Source/PGPostgresConnection.m
@@ -65,6 +65,7 @@ static void _PGPostgresConnectionNoticeProcessor(void *arg, const char *message)
@synthesize stringEncoding = _stringEncoding;
@synthesize parameters = _parameters;
@synthesize applicationName = _applicationName;
+@synthesize lastQueryAffectedRowCount = _lastQueryAffectedRowCount;
#pragma mark -
#pragma mark Initialisation
@@ -93,6 +94,8 @@ static void _PGPostgresConnectionNoticeProcessor(void *arg, const char *message)
_useKeepAlive = YES;
_keepAliveInterval = PGPostgresConnectionDefaultKeepAlive;
+ _lastQueryAffectedRowCount = 0;
+
_lastError = nil;
_connection = nil;
_connectionError = nil;