[glom/gtkmm4v4] gtkmm4: Adapt to Gnome::Gda::MetaDbObjectType as enum class.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v4] gtkmm4: Adapt to Gnome::Gda::MetaDbObjectType as enum class.
- Date: Fri, 28 Apr 2017 07:16:40 +0000 (UTC)
commit 2cc86b03ff3c50f299a58fe8b9893be27cce4338
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Apr 28 08:58:20 2017 +0200
gtkmm4: Adapt to Gnome::Gda::MetaDbObjectType as enum class.
glom/libglom/connectionpool_backends/sqlite.cc | 2 +-
glom/libglom/db_utils.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/libglom/connectionpool_backends/sqlite.cc b/glom/libglom/connectionpool_backends/sqlite.cc
index f305ffe..9681d94 100644
--- a/glom/libglom/connectionpool_backends/sqlite.cc
+++ b/glom/libglom/connectionpool_backends/sqlite.cc
@@ -186,7 +186,7 @@ bool Sqlite::recreate_table(const Glib::RefPtr<Gnome::Gda::Connection>& connecti
auto store = connection->get_meta_store();
auto metastruct = Gnome::Gda::MetaStruct::create(store, Gnome::Gda::MetaStruct::Feature::NONE);
- auto object = metastruct->complement(Gnome::Gda::META_DB_TABLE, Gnome::Gda::Value(), Gnome::Gda::Value(),
Gnome::Gda::Value(table_name));
+ auto object = metastruct->complement(Gnome::Gda::MetaDbObjectType::TABLE, Gnome::Gda::Value(),
Gnome::Gda::Value(), Gnome::Gda::Value(table_name));
if(!object)
return false;
diff --git a/glom/libglom/db_utils.cc b/glom/libglom/db_utils.cc
index 5791040..fa66b0c 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -887,7 +887,7 @@ type_vec_fields get_fields_for_table_from_database(const Glib::ustring& table_na
GdaMetaDbObject* meta_dbobject = nullptr;
try
{
- meta_dbobject = metastruct->complement(Gnome::Gda::META_DB_TABLE,
+ meta_dbobject = metastruct->complement(Gnome::Gda::MetaDbObjectType::TABLE,
Gnome::Gda::Value(), /* catalog */
Gnome::Gda::Value(), /* schema */
Gnome::Gda::Value(quoted_table_name)); //It's a static instance inside the MetaStore.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]