changeset 746:fc41dc504073

fix mysql/odbc/sqlite builds
author Alain Mazy <am@orthanc.team>
date Wed, 08 Oct 2025 12:48:04 +0200
parents 54bdb6c3bbba
children 176e5dfbad43
files Framework/MySQL/MySQLDatabase.cpp Framework/MySQL/MySQLTransaction.h Framework/Odbc/OdbcDatabase.cpp Framework/SQLite/SQLiteDatabase.cpp Framework/SQLite/SQLiteTransaction.h
diffstat 5 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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");
--- 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;
--- 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
--- 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;
--- 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