ObjPgSQL  Diff

Differences From Artifact [a066a8eda5]:

To Artifact [1b1566e654]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import "PGResult.h"
#import "PGResultRow.h"

@implementation PGResult
+ PG_resultWithResult: (PGresult*)result
{
	return [[[self alloc] PG_initWithResult: result] autorelease];
}

- PG_initWithResult: (PGresult*)result
{
	self = [super init];

	_result = result;

	return self;
}




|




|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import "PGResult.h"
#import "PGResultRow.h"

@implementation PGResult
+ PG_resultWithResult: (PGresult *)result
{
	return [[[self alloc] PG_initWithResult: result] autorelease];
}

- PG_initWithResult: (PGresult *)result
{
	self = [super init];

	_result = result;

	return self;
}
34
35
36
37
38
39
40
41
42
43
44
45
	if (index > PQntuples(_result))
		@throw [OFOutOfRangeException exception];

	return [PGResultRow rowWithResult: self
				      row: (int)index];
}

- (PGresult*)PG_result
{
	return _result;
}
@end







|




34
35
36
37
38
39
40
41
42
43
44
45
	if (index > PQntuples(_result))
		@throw [OFOutOfRangeException exception];

	return [PGResultRow rowWithResult: self
				      row: (int)index];
}

- (PGresult *)PG_result
{
	return _result;
}
@end