Mercurial > hg > orthanc-databases
diff Framework/Odbc/OdbcStatement.cpp @ 476:0f11a1f67dff
ODBC: Now detecting communication link failure with the DB and retrying to connect
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 01 Mar 2024 14:42:40 +0100 |
parents | ecd0b719cff5 |
children | 54d518dcd74a |
line wrap: on
line diff
--- a/Framework/Odbc/OdbcStatement.cpp Wed Feb 14 15:07:44 2024 +0100 +++ b/Framework/Odbc/OdbcStatement.cpp Fri Mar 01 14:42:40 2024 +0100 @@ -82,6 +82,11 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_Database, "Collision between multiple writers"); #endif } + else if (state == "08S01") + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_DatabaseUnavailable); + } + } else {