Differences From Artifact [6f8b3390f2]:
- File src/PGResult.m — part of check-in [31c5599df5] at 2024-08-11 09:22:44 on branch trunk — Change license to unmodified ISC (user: js, size: 1580) [annotate] [blame] [check-ins using]
To Artifact [dd60e56bcb]:
- File
src/PGSQLResult.m
— part of check-in
[77c26b4fce]
at
2024-08-11 18:00:52
on branch trunk
— Change prefix to PGSQL
Two letter prefixes are too risky to cause collisions. (user: js, size: 1598) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
12 13 14 15 16 17 18 | * 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. */ | | | | | | | 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 "PGSQLResult.h" #import "PGSQLResult+Private.h" #import "PGSQLResultRow.h" #import "PGSQLResultRow+Private.h" @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 | } - (id)objectAtIndex: (size_t)index { if (index > LONG_MAX || (long)index > PQntuples(_result)) @throw [OFOutOfRangeException exception]; | | | 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 [PGSQLResultRow pg_rowWithResult: self row: (int)index]; } @end |