aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-10 08:06:03 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-10 08:06:03 +0000
commit05469187ed0b48a628d80bc17e2a1874768ba457 (patch)
tree22181caf625ee2c87896fcd3c2d5a843606f9218 /Frameworks/PostgresKit/Source
parentcce4c113499797fd7632fc668c1a3d782bb58f2a (diff)
downloadsequelpro-05469187ed0b48a628d80bc17e2a1874768ba457.tar.gz
sequelpro-05469187ed0b48a628d80bc17e2a1874768ba457.tar.bz2
sequelpro-05469187ed0b48a628d80bc17e2a1874768ba457.zip
Remember to clear the type extentions when resetting the connection.
Diffstat (limited to 'Frameworks/PostgresKit/Source')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresConnection.m5
1 files changed, 5 insertions, 0 deletions
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;
}