Re: pgConn.cpp.patch
| От | Dave Page |
|---|---|
| Тема | Re: pgConn.cpp.patch |
| Дата | |
| Msg-id | 03AF4E498C591348A42FC93DEA9661B83AF134@mail.vale-housing.co.uk обсуждение исходный текст |
| Ответ на | pgConn.cpp.patch (Adam H.Pendleton <fmonkey@fmonkey.net>) |
| Ответы |
Re: pgConn.cpp.patch
|
| Список | pgadmin-hackers |
> -----Original Message-----
> From: Adam H.Pendleton [mailto:fmonkey@fmonkey.net]
> Sent: 25 June 2003 03:02
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] pgConn.cpp.patch
>
>
> This patch fixes a bug in the error reporting of the new connection
> dialog when setting the database encoding.
Hi Adam,
I don't believe this patch is correct. PQsetClientEncoding returns 0 on
success and -1 on failure [1], therefore !PQsetClientEncoding is true
upon success.
- if (PQsetClientEncoding(conn, "UNICODE"))
+ if (!PQsetClientEncoding(conn, "UNICODE"))
wxLogError(wxT("%s"), wxString(PQerrorMessage(conn),
wxConvUTF8).c_str());
Patch NOT applied.
Regards, Dave.
[1]
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=multibyt
e.html
В списке pgadmin-hackers по дате отправления: