Modernize coding style

FossilOrigin-Name: 491b090606ca0dcbd65e6abcf2020f8af9342b8c6bd90dc1596bed3f72e6009d
This commit is contained in:
Jonathan Schleifer 2018-11-06 21:45:02 +00:00
parent dd11eb6c25
commit 6120fa8fea
10 changed files with 44 additions and 32 deletions

View file

@ -30,6 +30,7 @@
#import "PGCommandFailedException.h"
@implementation PGConnection
@synthesize pg_connection = _connection;
@synthesize parameters = _parameters;
- (void)dealloc
@ -96,7 +97,7 @@
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;
@ -162,7 +163,7 @@
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;
@ -245,9 +246,4 @@
[self insertRow: row
intoTable: table];
}
- (PGconn *)PG_connection
{
return _connection;
}
@end