ObjPgSQL  Diff

Differences From Artifact [6f8b3390f2]:

To Artifact [dd60e56bcb]:


12
13
14
15
16
17
18
19
20
21
22




23
24

25
26
27
28
29
30
31
12
13
14
15
16
17
18




19
20
21
22
23

24
25
26
27
28
29
30
31







-
-
-
-
+
+
+
+

-
+







 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

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

@implementation PGResult
@implementation PGSQLResult
@synthesize pg_result = _result;

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

52
53
54
55
56
57
58
59

60
61
52
53
54
55
56
57
58

59
60
61







-
+


}

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

	return [PGResultRow pg_rowWithResult: self row: (int)index];
	return [PGSQLResultRow pg_rowWithResult: self row: (int)index];
}
@end