From eff50abf96c5a9f5cc887433b626d8d28f8ddde9 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 6 Sep 2012 09:26:47 +0000 Subject: Don't expose libpq types to the client. --- Frameworks/PostgresKit/Source/FLXPostgresError.h | 2 +- Frameworks/PostgresKit/Source/FLXPostgresError.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Frameworks/PostgresKit/Source') diff --git a/Frameworks/PostgresKit/Source/FLXPostgresError.h b/Frameworks/PostgresKit/Source/FLXPostgresError.h index 58632f04..f3ee9c60 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresError.h +++ b/Frameworks/PostgresKit/Source/FLXPostgresError.h @@ -69,6 +69,6 @@ */ @property (readonly) NSUInteger errorStatementPosition; -- (id)initWithResult:(PGresult *)result; +- (id)initWithResult:(const void *)result; @end diff --git a/Frameworks/PostgresKit/Source/FLXPostgresError.m b/Frameworks/PostgresKit/Source/FLXPostgresError.m index 22394900..32f8fa72 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresError.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresError.m @@ -57,7 +57,7 @@ return nil; } -- (id)initWithResult:(PGresult *)result +- (id)initWithResult:(const void *)result { if ((self = [super init])) { @@ -68,7 +68,7 @@ _errorMessageHint = nil; _errorStatementPosition = -1; - if (result) [self _extractErrorDetailsFromResult:result]; + if (result) [self _extractErrorDetailsFromResult:(PGresult *)result]; } return self; -- cgit v1.2.3