diff options
author | stuconnolly <stuart02@gmail.com> | 2012-09-10 11:09:56 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-09-10 11:09:56 +0000 |
commit | 7dd33a85a537c410cd3b31d661731b1f8d1e7d59 (patch) | |
tree | 2881a6fc037767140f0d0a0eaed5000a58c98c09 /Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m | |
parent | 12ad4fae862bc157cd133b42ed8f204bc273058a (diff) | |
download | sequelpro-7dd33a85a537c410cd3b31d661731b1f8d1e7d59.tar.gz sequelpro-7dd33a85a537c410cd3b31d661731b1f8d1e7d59.tar.bz2 sequelpro-7dd33a85a537c410cd3b31d661731b1f8d1e7d59.zip |
Rework type handling; reducing the number of paremeters being passed around as well as libpq calls.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m')
-rw-r--r-- | Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m b/Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m index a7b98909..41903d91 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeHandler.m @@ -30,6 +30,7 @@ - (id)initWithConnection:(FLXPostgresConnection *)connection { if ((self = [super init])) { + _type = -1; _result = nil; _connection = [connection retain]; } @@ -41,6 +42,8 @@ - (void)dealloc { + _result = nil; + if (_connection) [_connection release], _connection = nil; [super dealloc]; |