Adjust to ObjFW changes
FossilOrigin-Name: 8af0a7a7662306b2875fc35b6656b24794e624be5b995b2b42fa88a2bac0a220
This commit is contained in:
parent
2600168d95
commit
f9d637e7be
2 changed files with 8 additions and 3 deletions
|
@ -191,6 +191,8 @@ convertType(PGresult *res, int column, OFString *string)
|
|||
@implementation PGResultRowObjectEnumerator
|
||||
- (id)nextObject
|
||||
{
|
||||
id object;
|
||||
|
||||
if (_pos >= _count)
|
||||
return nil;
|
||||
|
||||
|
@ -200,7 +202,10 @@ convertType(PGresult *res, int column, OFString *string)
|
|||
if (_pos >= _count)
|
||||
return nil;
|
||||
|
||||
return convertType(_res, _pos,
|
||||
[OFString stringWithUTF8String: PQgetvalue(_res, _row, _pos++)]);
|
||||
object = convertType(_res, _pos,
|
||||
[OFString stringWithUTF8String: PQgetvalue(_res, _row, _pos)]);
|
||||
_pos++;
|
||||
|
||||
return object;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
_connection = [connection retain];
|
||||
_error = [[OFString alloc]
|
||||
initWithCString: PQerrorMessage([_connection PG_connection])
|
||||
encoding: [OFString nativeOSEncoding]];
|
||||
encoding: [OFSystemInfo native8BitEncoding]];
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
@throw e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue