aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/PGPostgresConnection.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-11-17 17:10:40 +0000
committerstuconnolly <stuart02@gmail.com>2012-11-17 17:10:40 +0000
commit5d87d8f8cd268e753a1b2ed647ee413c43360ba6 (patch)
treebaf2d183ceb511ac13a0e32efc8ccdaea2db4fe5 /Frameworks/PostgresKit/Source/PGPostgresConnection.m
parent85dbac812f6d1cbba269d9e92ab3ad14cb858e67 (diff)
downloadsequelpro-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.m7
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);