mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-03 06:12:43 -06:00
.PostgreSQL: Improved tracing
git-svn-id: svn://ultimatepp.org/upp/trunk@2969 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e6d818654e
commit
52232db14c
1 changed files with 2 additions and 2 deletions
|
|
@ -313,9 +313,9 @@ void PostgreSQLSession::ExecTrans(const char * statement)
|
|||
}
|
||||
while(level == 0 && (!ConnectionOK() || ErrorMessage().Find("connection") >= 0 && itry == 0)
|
||||
&& WhenReconnect(itry++));
|
||||
|
||||
|
||||
if(trace)
|
||||
*trace << statement << " failed: " << ErrorMessage() << "\n";
|
||||
*trace << statement << " failed: " << ErrorMessage() << " (level " << level << ")\n";
|
||||
SetError(ErrorMessage(), statement, 0, ErrorCode());
|
||||
PQclear(result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue