mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-31 07:12:39 -06:00
.XmlRpc: double formatting changed to %.12g, PGSQL: Reconnect if error message contains connect
git-svn-id: svn://ultimatepp.org/upp/trunk@2694 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
99b83d0eb5
commit
ce0f8adf42
2 changed files with 3 additions and 2 deletions
|
|
@ -303,7 +303,8 @@ void PostgreSQLSession::ExecTrans(const char * statement)
|
|||
return;
|
||||
}
|
||||
}
|
||||
while(level == 0 && !ConnectionOK() && WhenReconnect(itry++));
|
||||
while(level == 0 && (!ConnectionOK() || ErrorMessage().Find("connection") >= 0 && itry == 0)
|
||||
&& WhenReconnect(itry++));
|
||||
|
||||
if(trace)
|
||||
*trace << statement << " failed: " << ErrorMessage() << "\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue