mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
Another PGSQL patch
git-svn-id: svn://ultimatepp.org/upp/trunk@1460 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ede54c67ba
commit
f0be7117dd
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue