comparison Framework/PostgreSQL/PostgreSQLStatement.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 b2ff1cd2907a
children 318c1ccb787c
comparison
equal deleted inserted replaced
44:95f0f57f8920 46:6a574d810b98
340 } 340 }
341 } 341 }
342 } 342 }
343 343
344 344
345 PostgreSQLStatement::~PostgreSQLStatement()
346 {
347 try
348 {
349 Unprepare();
350 }
351 catch (Orthanc::OrthancException&)
352 {
353 // Ignore possible exceptions due to connection loss
354 }
355 }
356
357
345 void PostgreSQLStatement::Run() 358 void PostgreSQLStatement::Run()
346 { 359 {
347 PGresult* result = reinterpret_cast<PGresult*>(Execute()); 360 PGresult* result = reinterpret_cast<PGresult*>(Execute());
348 assert(result != NULL); // An exception would have been thrown otherwise 361 assert(result != NULL); // An exception would have been thrown otherwise
349 362