Another PGSQL patch

git-svn-id: svn://ultimatepp.org/upp/trunk@1460 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-07-31 09:39:03 +00:00
parent ede54c67ba
commit f0be7117dd

View file

@ -152,7 +152,9 @@ bool PostgreSQLPerformScript(const String& txt, StatementExecutor& se, Gate2<int
String PostgreSQLConnection::ErrorMessage()
{
return PQerrorMessage(conn);
if(PQclientEncoding(conn) >= 0)
return PQerrorMessage(conn);
return FromSystemCharset(PQerrorMessage(conn));
}
String PostgreSQLConnection::ErrorCode()