# HG changeset patch # User Alain Mazy # Date 1759920484 -7200 # Node ID fc41dc50407390e2183ce63ec81d28d259139cac # Parent 54bdb6c3bbba9841a2864db5579a2dee091c4805 fix mysql/odbc/sqlite builds diff -r 54bdb6c3bbba -r fc41dc504073 Framework/MySQL/MySQLDatabase.cpp --- a/Framework/MySQL/MySQLDatabase.cpp Wed Oct 08 12:10:38 2025 +0200 +++ b/Framework/MySQL/MySQLDatabase.cpp Wed Oct 08 12:48:04 2025 +0200 @@ -570,6 +570,11 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "An explicit transaction is needed"); } + virtual bool DoesSchemaExist(const std::string& name) ORTHANC_OVERRIDE + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + virtual bool DoesIndexExist(const std::string& name) ORTHANC_OVERRIDE { throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "An explicit transaction is needed"); diff -r 54bdb6c3bbba -r fc41dc504073 Framework/MySQL/MySQLTransaction.h --- a/Framework/MySQL/MySQLTransaction.h Wed Oct 08 12:10:38 2025 +0200 +++ b/Framework/MySQL/MySQLTransaction.h Wed Oct 08 12:48:04 2025 +0200 @@ -64,6 +64,11 @@ return db_.DoesTableExist(*this, name); } + virtual bool DoesSchemaExist(const std::string& name) ORTHANC_OVERRIDE + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + virtual bool DoesIndexExist(const std::string& name) ORTHANC_OVERRIDE { return false; diff -r 54bdb6c3bbba -r fc41dc504073 Framework/Odbc/OdbcDatabase.cpp --- a/Framework/Odbc/OdbcDatabase.cpp Wed Oct 08 12:10:38 2025 +0200 +++ b/Framework/Odbc/OdbcDatabase.cpp Wed Oct 08 12:48:04 2025 +0200 @@ -84,6 +84,11 @@ return db_.DoesTableExist(name.c_str()); } + virtual bool DoesSchemaExist(const std::string& name) ORTHANC_OVERRIDE + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + virtual bool DoesIndexExist(const std::string& name) ORTHANC_OVERRIDE { return false; @@ -193,6 +198,11 @@ return db_.DoesTableExist(name.c_str()); } + virtual bool DoesSchemaExist(const std::string& name) ORTHANC_OVERRIDE + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + virtual bool DoesIndexExist(const std::string& name) ORTHANC_OVERRIDE { return false; // note implemented yet diff -r 54bdb6c3bbba -r fc41dc504073 Framework/SQLite/SQLiteDatabase.cpp --- a/Framework/SQLite/SQLiteDatabase.cpp Wed Oct 08 12:10:38 2025 +0200 +++ b/Framework/SQLite/SQLiteDatabase.cpp Wed Oct 08 12:48:04 2025 +0200 @@ -77,6 +77,11 @@ return db_.GetObject().DoesTableExist(name.c_str()); } + virtual bool DoesSchemaExist(const std::string& name) ORTHANC_OVERRIDE + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + virtual bool DoesIndexExist(const std::string& name) ORTHANC_OVERRIDE { return false; diff -r 54bdb6c3bbba -r fc41dc504073 Framework/SQLite/SQLiteTransaction.h --- a/Framework/SQLite/SQLiteTransaction.h Wed Oct 08 12:10:38 2025 +0200 +++ b/Framework/SQLite/SQLiteTransaction.h Wed Oct 08 12:48:04 2025 +0200 @@ -69,6 +69,11 @@ return database_.GetObject().DoesTableExist(name.c_str()); } + virtual bool DoesSchemaExist(const std::string& name) ORTHANC_OVERRIDE + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + virtual bool DoesIndexExist(const std::string& name) ORTHANC_OVERRIDE { return false; // Not implemented yet