10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{
self = [super init];
@try {
_connection = [connection retain];
_error = [[OFString alloc]
initWithCString: PQerrorMessage([_connection PG_connection])
encoding: OF_STRING_ENCODING_NATIVE];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
|
|
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{
self = [super init];
@try {
_connection = [connection retain];
_error = [[OFString alloc]
initWithCString: PQerrorMessage([_connection PG_connection])
encoding: [OFString nativeOSEncoding]];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
|