@@ -28,10 +28,11 @@ #import "PGConnectionFailedException.h" #import "PGCommandFailedException.h" @implementation PGConnection +@synthesize pg_connection = _connection; @synthesize parameters = _parameters; - (void)dealloc { [_parameters release]; @@ -94,11 +95,11 @@ command: command]; } switch (PQresultStatus(result)) { case PGRES_TUPLES_OK: - return [PGResult PG_resultWithResult: result]; + return [PGResult pg_resultWithResult: result]; case PGRES_COMMAND_OK: PQclear(result); return nil; default: PQclear(result); @@ -160,11 +161,11 @@ objc_autoreleasePoolPop(pool); switch (PQresultStatus(result)) { case PGRES_TUPLES_OK: - return [PGResult PG_resultWithResult: result]; + return [PGResult pg_resultWithResult: result]; case PGRES_COMMAND_OK: PQclear(result); return nil; default: PQclear(result); @@ -243,11 +244,6 @@ { for (OFDictionary *row in rows) [self insertRow: row intoTable: table]; } - -- (PGconn *)PG_connection -{ - return _connection; -} @end