Mercurial > hg > orthanc-databases
diff Framework/PostgreSQL/PostgreSQLResult.cpp @ 46:6a574d810b98
Compatibility with MySQL 8.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Jul 2018 12:27:40 +0200 |
parents | 9774802fd05f |
children | 318c1ccb787c |
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLResult.cpp Tue Jul 17 08:50:53 2018 +0200 +++ b/Framework/PostgreSQL/PostgreSQLResult.cpp Wed Jul 18 12:27:40 2018 +0200 @@ -105,6 +105,19 @@ } + PostgreSQLResult::~PostgreSQLResult() + { + try + { + Clear(); + } + catch (Orthanc::OrthancException&) + { + // Ignore possible exceptions due to connection loss + } + } + + void PostgreSQLResult::Next() { position_++;