comparison Framework/PostgreSQL/PostgreSQLDatabase.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 2fb9cd42af14
children 318c1ccb787c
comparison
equal deleted inserted replaced
44:95f0f57f8920 46:6a574d810b98
66 PQfinish(reinterpret_cast<PGconn*>(pg_)); 66 PQfinish(reinterpret_cast<PGconn*>(pg_));
67 pg_ = NULL; 67 pg_ = NULL;
68 } 68 }
69 } 69 }
70 70
71
72 PostgreSQLDatabase::~PostgreSQLDatabase()
73 {
74 try
75 {
76 Close();
77 }
78 catch (Orthanc::OrthancException&)
79 {
80 // Ignore possible exceptions due to connection loss
81 }
82 }
83
71 84
72 void PostgreSQLDatabase::Open() 85 void PostgreSQLDatabase::Open()
73 { 86 {
74 if (pg_ != NULL) 87 if (pg_ != NULL)
75 { 88 {