Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLStatement.cpp @ 235:f2b32d31fc99
fix lsb build, fix backward compatibility with SDK <= 1.9.1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Apr 2021 11:42:32 +0200 |
parents | d1b124d116c1 |
children | 35598014f140 |
comparison
equal
deleted
inserted
replaced
234:d1b124d116c1 | 235:f2b32d31fc99 |
---|---|
283 if (result != NULL) | 283 if (result != NULL) |
284 { | 284 { |
285 PQclear(result); | 285 PQclear(result); |
286 } | 286 } |
287 | 287 |
288 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) | |
288 throw Orthanc::OrthancException(Orthanc::ErrorCode_DatabaseCannotSerialize); | 289 throw Orthanc::OrthancException(Orthanc::ErrorCode_DatabaseCannotSerialize); |
290 #else | |
291 throw Orthanc::OrthancException(Orthanc::ErrorCode_Database, "Collision between multiple writers"); | |
292 #endif | |
289 } | 293 } |
290 else if (result == NULL) | 294 else if (result == NULL) |
291 { | 295 { |
292 database_.ThrowException(true); | 296 database_.ThrowException(true); |
293 } | 297 } |