# HG changeset patch # User Alain Mazy # Date 1709300560 -3600 # Node ID 0f11a1f67dffcff1c4d2f6f952756bde53e8799c # Parent 97c709e400ec433fcea132a85bb91f0c588f068e ODBC: Now detecting communication link failure with the DB and retrying to connect diff -r 97c709e400ec -r 0f11a1f67dff Framework/Odbc/OdbcStatement.cpp --- 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 { diff -r 97c709e400ec -r 0f11a1f67dff Odbc/NEWS --- a/Odbc/NEWS Wed Feb 14 15:07:44 2024 +0100 +++ b/Odbc/NEWS Fri Mar 01 14:42:40 2024 +0100 @@ -5,6 +5,7 @@ * Added support for labels * Compatibility with Orthanc SDK 1.12.0 (communications between the Orthanc core and the database plugin using Google Protocol Buffers) +* Now detecting communication link failure with the DB and retrying to connect. Release 1.1 (2021-12-06)