ObjPgSQL  Diff

Differences From Artifact [31133d2ea7]:

To Artifact [879f970757]:


18
19
20
21
22
23
24

25
26
27
28


29

30
31

32
33
34

35
36
37
38
39
40
41
18
19
20
21
22
23
24
25
26
27
28
29
30
31

32
33

34
35
36

37
38
39
40
41
42
43
44







+




+
+
-
+

-
+


-
+







 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#import "PGResult.h"
#import "PGResult+Private.h"
#import "PGResultRow.h"
#import "PGResultRow+Private.h"

@implementation PGResult
@synthesize pg_result = _result;

+ (instancetype)PG_resultWithResult: (PGresult *)result
+ (instancetype)pg_resultWithResult: (PGresult *)result
{
	return [[[self alloc] PG_initWithResult: result] autorelease];
	return [[[self alloc] pg_initWithResult: result] autorelease];
}

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

	_result = result;

	return self;
}
54
55
56
57
58
59
60
61

62
63
64
65
66
67
68
69
57
58
59
60
61
62
63

64
65
66





67







-
+


-
-
-
-
-

}

- (id)objectAtIndex: (size_t)index
{
	if (index > PQntuples(_result))
		@throw [OFOutOfRangeException exception];

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

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