From 7c5f088714168df2823e33134cc7b7230382ab61 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 15 Jan 2013 20:52:08 +0000 Subject: Tidy up. --- Frameworks/PostgresKit/Source/PGPostgresConnection.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Frameworks/PostgresKit') 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]; } -- cgit v1.2.3