From 05469187ed0b48a628d80bc17e2a1874768ba457 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 10 Sep 2012 08:06:03 +0000 Subject: Remember to clear the type extentions when resetting the connection. --- Frameworks/PostgresKit/Source/FLXPostgresConnection.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Frameworks') diff --git a/Frameworks/PostgresKit/Source/FLXPostgresConnection.m b/Frameworks/PostgresKit/Source/FLXPostgresConnection.m index 4d6afbd8..7671a14d 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresConnection.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresConnection.m @@ -224,6 +224,11 @@ static void _FLXPostgresConnectionNoticeProcessor(void *arg, const char *message PQreset(_connection); + // Reset type extenstions + if (!PQclearTypes(_connection)) { + NSLog(@"PostgresKit: Error: Failed to clear type extensions during connection reset. Connection might return unexpected results!"); + } + return YES; } -- cgit v1.2.3