# HG changeset patch # User Sebastien Jodogne # Date 1617876001 -7200 # Node ID d1d2edbbe6fb30c79ffdecb6d3590b442e52d559 # Parent f2b32d31fc99b4c68cd54469b4716d3504f3ac1e MySQL: fix backward compatibility with SDK <= 1.9.1 diff -r f2b32d31fc99 -r d1d2edbbe6fb Framework/MySQL/MySQLDatabase.cpp --- a/Framework/MySQL/MySQLDatabase.cpp Thu Apr 08 11:42:32 2021 +0200 +++ b/Framework/MySQL/MySQLDatabase.cpp Thu Apr 08 12:00:01 2021 +0200 @@ -71,7 +71,11 @@ } else if (error == ER_LOCK_DEADLOCK) { +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) throw Orthanc::OrthancException(Orthanc::ErrorCode_DatabaseCannotSerialize); +#else + throw Orthanc::OrthancException(Orthanc::ErrorCode_Database, "Collision between multiple writers"); +#endif } else {