Differences From Artifact [1b1566e654]:
- File src/PGResult.m — part of check-in [fc8e42990e] at 2017-05-09 23:19:20 on branch trunk — Adjust to recent ObjFW changes (user: js, size: 652) [annotate] [blame] [check-ins using]
To Artifact [b80f854ff0]:
- File
src/PGResult.m
— part of check-in
[6307a38198]
at
2017-05-10 23:46:05
on branch trunk
— Move private methods to separate headers
Also fixes a typo and adds two missing nullability annotations. (user: js, size: 711) [annotate] [blame] [check-ins using]
1 2 3 4 | #import "PGResult.h" #import "PGResultRow.h" @implementation PGResult | > | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #import "PGResult.h" #import "PGResultRow.h" #import "PGResultRow+Private.h" @implementation PGResult + (instancetype)PG_resultWithResult: (PGresult *)result { return [[[self alloc] PG_initWithResult: result] autorelease]; } - (instancetype)PG_initWithResult: (PGresult *)result { self = [super init]; _result = result; return self; } |
︙ | ︙ | |||
30 31 32 33 34 35 36 | } - (id)objectAtIndex: (size_t)index { if (index > PQntuples(_result)) @throw [OFOutOfRangeException exception]; | | | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | } - (id)objectAtIndex: (size_t)index { if (index > PQntuples(_result)) @throw [OFOutOfRangeException exception]; return [PGResultRow PG_rowWithResult: self row: (int)index]; } - (PGresult *)PG_result { return _result; } @end |