aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-01-15 20:52:08 +0000
committerstuconnolly <stuart02@gmail.com>2013-01-15 20:52:08 +0000
commit7c5f088714168df2823e33134cc7b7230382ab61 (patch)
treebcf2963055d2f26d633274b5c23bbe235a4e8faf /Frameworks/PostgresKit
parentac05529d8fa9594105d73eb83c8e317d7bba61f4 (diff)
downloadsequelpro-7c5f088714168df2823e33134cc7b7230382ab61.tar.gz
sequelpro-7c5f088714168df2823e33134cc7b7230382ab61.tar.bz2
sequelpro-7c5f088714168df2823e33134cc7b7230382ab61.zip
Tidy up.
Diffstat (limited to 'Frameworks/PostgresKit')
-rw-r--r--Frameworks/PostgresKit/Source/PGPostgresConnection.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Frameworks/PostgresKit/Source/PGPostgresConnection.m b/Frameworks/PostgresKit/Source/PGPostgresConnection.m
index 6d889231..3063db84 100644
--- a/Frameworks/PostgresKit/Source/PGPostgresConnection.m
+++ b/Frameworks/PostgresKit/Source/PGPostgresConnection.m
@@ -334,11 +334,11 @@ static void _PGPostgresConnectionNoticeProcessor(void *arg, const char *message)
// Set notice processor
PQsetNoticeProcessor(_connection, _PGPostgresConnectionNoticeProcessor, self);
+ // Register or clear type extensions
NSInteger success = reset ? PQclearTypes(_connection) : PQinitTypes(_connection);
- // Register type extensions
if (!success) {
- NSLog(@"PostgresKit: Error: Failed to initialise (or clear) type extensions. Connection might return unexpected results!");
+ NSLog(@"PostgresKit: Error: Failed to initialise or clear type extensions. Connection might return unexpected results!");
}
[self _loadDatabaseParameters];
@@ -348,7 +348,7 @@ static void _PGPostgresConnectionNoticeProcessor(void *arg, const char *message)
[_delegate performSelectorOnMainThread:@selector(connectionReset:) withObject:self waitUntilDone:NO];
}
}
- else{
+ else {
if (_delegate && [_delegate respondsToSelector:@selector(connectionEstablished:)]) {
[_delegate performSelectorOnMainThread:@selector(connectionEstablished:) withObject:self waitUntilDone:NO];
}