aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-06 09:26:47 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-06 09:26:47 +0000
commiteff50abf96c5a9f5cc887433b626d8d28f8ddde9 (patch)
tree93faaeacc37490de50a06cb77fceb0f96ef31802
parent165b5f01908403cbf84b2d12c37d174f00c217b2 (diff)
downloadsequelpro-eff50abf96c5a9f5cc887433b626d8d28f8ddde9.tar.gz
sequelpro-eff50abf96c5a9f5cc887433b626d8d28f8ddde9.tar.bz2
sequelpro-eff50abf96c5a9f5cc887433b626d8d28f8ddde9.zip
Don't expose libpq types to the client.
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresError.h2
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresError.m4
2 files changed, 3 insertions, 3 deletions
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;