[glom/gtkmm4v4] gtkmm4: Adapt to Gnome::Gda::ConnectionMetaTypes as MetaTypes enum class.



commit 26b4a18d99bf790e6914d29802428fa75fbf7d26
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Apr 28 08:37:50 2017 +0200

    gtkmm4: Adapt to Gnome::Gda::ConnectionMetaTypes as MetaTypes enum class.

 glom/libglom/data_structure/fieldtypes.cc |    4 ++--
 glom/libglom/db_utils.cc                  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glom/libglom/data_structure/fieldtypes.cc b/glom/libglom/data_structure/fieldtypes.cc
index a6fcba4..40f1d19 100644
--- a/glom/libglom/data_structure/fieldtypes.cc
+++ b/glom/libglom/data_structure/fieldtypes.cc
@@ -46,7 +46,7 @@ FieldTypes::FieldTypes(const Glib::RefPtr<Gnome::Gda::Connection>& gda_connectio
     Glib::RefPtr<Gnome::Gda::DataModel> data_model_tables;
     if(true) //Already done in ConnectionPool::connect(): gda_connection->update_meta_store())
     {
-      data_model_tables = gda_connection->get_meta_store_data(Gnome::Gda::CONNECTION_META_TYPES);
+      data_model_tables = gda_connection->get_meta_store_data(Gnome::Gda::Connection::MetaType::TYPES);
     }
 
     if(!data_model_tables)
@@ -54,7 +54,7 @@ FieldTypes::FieldTypes(const Glib::RefPtr<Gnome::Gda::Connection>& gda_connectio
 
     if(data_model_tables && (data_model_tables->get_n_columns() == 0))
     {
-      std::cerr << G_STRFUNC << ": get_meta_store_data(Gnome::Gda::CONNECTION_META_TYPES) failed.\n";
+      std::cerr << G_STRFUNC << ": get_meta_store_data(Gnome::Gda::Connection::MetaType::TYPES) failed.\n";
     }
     else if(data_model_tables)
     {
diff --git a/glom/libglom/db_utils.cc b/glom/libglom/db_utils.cc
index 52106b5..ad71b38 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -853,7 +853,7 @@ type_vec_fields get_fields_for_table_from_database(const Glib::ustring& table_na
     {
       //This should work because we called update_meta_store_table_names() in ConnectionPool,
       //and that gets the tables' fields too.
-      data_model_fields = connection->get_meta_store_data(Gnome::Gda::CONNECTION_META_FIELDS, holder_list);
+      data_model_fields = connection->get_meta_store_data(Gnome::Gda::Connection::MetaType::FIELDS, 
holder_list);
     }
     catch(const Gnome::Gda::MetaStoreError& ex)
     {
@@ -1065,7 +1065,7 @@ type_vec_strings get_table_names_from_database(bool ignore_system_tables)
     try
     {
       //This should work because we called update_meta_store_tables() in ConnectionPool.
-      data_model_tables = gda_connection->get_meta_store_data(Gnome::Gda::CONNECTION_META_TABLES);
+      data_model_tables = gda_connection->get_meta_store_data(Gnome::Gda::Connection::MetaType::TABLES);
     }
     catch(const Gnome::Gda::MetaStoreError& ex)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]