aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Frameworks/PostgresKit/Source/PGPostgresConnection.m7
-rw-r--r--Frameworks/PostgresKit/Source/PGPostgresTypes.h2
2 files changed, 7 insertions, 2 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);
diff --git a/Frameworks/PostgresKit/Source/PGPostgresTypes.h b/Frameworks/PostgresKit/Source/PGPostgresTypes.h
index 9f822a8b..57ad2581 100644
--- a/Frameworks/PostgresKit/Source/PGPostgresTypes.h
+++ b/Frameworks/PostgresKit/Source/PGPostgresTypes.h
@@ -47,7 +47,7 @@ enum
PGPostgresOidOid = 26, // NumberHandler => NSNumber
// JSON
- PGPostgresOidJSON = 114, // StringHandler => NSString
+ PGPostgresOidJSON = 114, // StringHandler => NSString
// XML
PGPostgresOidXML = 142, // StringHandler => NSString