diff options
author | stuconnolly <stuart02@gmail.com> | 2012-11-17 17:10:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-11-17 17:10:40 +0000 |
commit | 5d87d8f8cd268e753a1b2ed647ee413c43360ba6 (patch) | |
tree | baf2d183ceb511ac13a0e32efc8ccdaea2db4fe5 /Frameworks/PostgresKit/Source/PGPostgresConnection.m | |
parent | 85dbac812f6d1cbba269d9e92ab3ad14cb858e67 (diff) | |
download | sequelpro-5d87d8f8cd268e753a1b2ed647ee413c43360ba6.tar.gz sequelpro-5d87d8f8cd268e753a1b2ed647ee413c43360ba6.tar.bz2 sequelpro-5d87d8f8cd268e753a1b2ed647ee413c43360ba6.zip |
Comments.
Diffstat (limited to 'Frameworks/PostgresKit/Source/PGPostgresConnection.m')
-rw-r--r-- | Frameworks/PostgresKit/Source/PGPostgresConnection.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Frameworks/PostgresKit/Source/PGPostgresConnection.m b/Frameworks/PostgresKit/Source/PGPostgresConnection.m index 8fcf8ae0..6d889231 100644 --- a/Frameworks/PostgresKit/Source/PGPostgresConnection.m +++ b/Frameworks/PostgresKit/Source/PGPostgresConnection.m @@ -114,6 +114,11 @@ static void _PGPostgresConnectionNoticeProcessor(void *arg, const char *message) #pragma mark - #pragma mark Accessors +/** + * Get the underlying connection associated with this wrapper. + * + * @return The PGConn instance. + */ - (PGconn *)postgresConnection { return _connection; @@ -295,7 +300,7 @@ static void _PGPostgresConnectionNoticeProcessor(void *arg, const char *message) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - BOOL reset = [isReset boolValue]; + BOOL reset = isReset && [isReset boolValue]; int sock = PQsocket(_connection); |