aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks')
-rw-r--r--Frameworks/PostgresKit/Source/PGPostgresResult.m2
-rw-r--r--Frameworks/PostgresKit/Source/PGPostgresTypes.h2
-rw-r--r--Frameworks/PostgresKit/Tests/PGDataTypeTests.m2
3 files changed, 4 insertions, 2 deletions
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 <PGPostgresTypeHandlerProtocol> 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