@@ -2,15 +2,15 @@ @interface PGResultRowEnumerator: OFEnumerator { PGResult *result; PGresult *res; - size_t row, pos, count; + int row, pos, count; } - initWithResult: (PGResult*)result - row: (size_t)row; + row: (int)row; @end @interface PGResultRowKeyEnumerator: PGResultRowEnumerator @end @@ -17,18 +17,18 @@ @interface PGResultRowObjectEnumerator: PGResultRowEnumerator @end @implementation PGResultRow + rowWithResult: (PGResult*)result - row: (size_t)row + row: (int)row { return [[[self alloc] initWithResult: result row: row] autorelease]; } - initWithResult: (PGResult*)result_ - row: (size_t)row_ + row: (int)row_ { self = [super init]; result = [result_ retain]; res = [result PG_result]; @@ -44,11 +44,11 @@ [super dealloc]; } - (size_t)count { - size_t i, count, fields = PQnfields(res); + int i, count, fields = PQnfields(res); for (i = count = 0; i < fields; i++) if (!PQgetisnull(res, row, i)) count++; @@ -85,11 +85,11 @@ } @end @implementation PGResultRowEnumerator - initWithResult: (PGResult*)result_ - row: (size_t)row_ + row: (int)row_ { self = [super init]; result = [result_ retain]; res = [result PG_result];