From 9c95c180b5465f8ad0fea5d67a39806f6644a4e8 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 14 Jan 2013 14:56:54 +0000 Subject: Fix typos. --- Frameworks/PostgresKit/Source/PGPostgresResult.m | 2 +- Frameworks/PostgresKit/Source/PGPostgresTypes.h | 2 +- Frameworks/PostgresKit/Tests/PGDataTypeTests.m | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'Frameworks') diff --git a/Frameworks/PostgresKit/Source/PGPostgresResult.m b/Frameworks/PostgresKit/Source/PGPostgresResult.m index 892e8a53..1bf1db06 100644 --- a/Frameworks/PostgresKit/Source/PGPostgresResult.m +++ b/Frameworks/PostgresKit/Source/PGPostgresResult.m @@ -245,7 +245,7 @@ id handler = [self _typeHandlerForColumn:column withType:type]; if (!handler) { - NSLog(@"PostgresKit: Warning: No type handler found for type %d, return NSData.", type); + NSLog(@"PostgresKit: Warning: No type handler found for type %d, returning NSData.", type); const void *bytes = PQgetvalue(_result, (int)row, (int)column); NSUInteger length = PQgetlength(_result, (int)row, (int)column); diff --git a/Frameworks/PostgresKit/Source/PGPostgresTypes.h b/Frameworks/PostgresKit/Source/PGPostgresTypes.h index 57ad2581..e29933e9 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 diff --git a/Frameworks/PostgresKit/Tests/PGDataTypeTests.m b/Frameworks/PostgresKit/Tests/PGDataTypeTests.m index 6165b524..8bea485e 100644 --- a/Frameworks/PostgresKit/Tests/PGDataTypeTests.m +++ b/Frameworks/PostgresKit/Tests/PGDataTypeTests.m @@ -104,7 +104,9 @@ static NSUInteger PGTestDatabasePort = 5432; - (void)setUp { + PGPostgresResult *queryResult = [_connection executeWithFormat:@"SELECT \"%@\" FROM \"data_types\"", _field]; + _result = [[queryResult row] objectForKey:_field]; } - (void)tearDown -- cgit v1.2.3