comparison Framework/Odbc/OdbcStatement.cpp @ 338:79e21c33962d

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Aug 2021 14:09:43 +0200
parents b5fb8b77ce4d
children d543832987da
comparison
equal deleted inserted replaced
337:8f109cfbfc5d 338:79e21c33962d
72 72
73 if (state == "40001" || 73 if (state == "40001" ||
74 (dialect == Dialect_MySQL && native == 1213) || 74 (dialect == Dialect_MySQL && native == 1213) ||
75 (dialect == Dialect_MSSQL && native == 1205)) 75 (dialect == Dialect_MSSQL && native == 1205))
76 { 76 {
77 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2)
77 throw Orthanc::OrthancException(Orthanc::ErrorCode_DatabaseCannotSerialize); 78 throw Orthanc::OrthancException(Orthanc::ErrorCode_DatabaseCannotSerialize);
79 #else
80 throw Orthanc::OrthancException(Orthanc::ErrorCode_Database, "Collision between multiple writers");
81 #endif
78 } 82 }
79 } 83 }
80 else 84 else
81 { 85 {
82 return; 86 return;