[glom/gtkmm4v4] gtkmm4: Adapt to Gnome::Gda::ConnectionOptions as Options enum class.



commit f393a9f21d8dd26f9f143149b3f349482918caa1
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Apr 28 08:35:41 2017 +0200

    gtkmm4: Adapt to Gnome::Gda::ConnectionOptions as Options enum class.

 glom/libglom/connectionpool_backends/mysql.cc    |    6 +++---
 glom/libglom/connectionpool_backends/postgres.cc |    6 +++---
 glom/libglom/connectionpool_backends/sqlite.cc   |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/glom/libglom/connectionpool_backends/mysql.cc b/glom/libglom/connectionpool_backends/mysql.cc
index f797ec4..f7c57ea 100644
--- a/glom/libglom/connectionpool_backends/mysql.cc
+++ b/glom/libglom/connectionpool_backends/mysql.cc
@@ -103,13 +103,13 @@ Glib::RefPtr<Gnome::Gda::Connection> MySQL::attempt_connect(const Glib::ustring&
     {
       connection = Gnome::Gda::Connection::create_from_string("MySQL",
         cnc_string_with_db, auth_string,
-        Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+        Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
     }
     else
     {
       connection = Gnome::Gda::Connection::open_from_string("MySQL",
         cnc_string_with_db, auth_string,
-        Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+        Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
 
       //connection->statement_execute_non_select("SET DATESTYLE = 'ISO'");
       data_model = connection->statement_execute_select("SELECT version()");
@@ -129,7 +129,7 @@ Glib::RefPtr<Gnome::Gda::Connection> MySQL::attempt_connect(const Glib::ustring&
     {
       temp_conn = Gnome::Gda::Connection::open_from_string("MySQL",
         cnc_string_without_db, auth_string,
-        Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+        Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
     }
     catch(const Glib::Error& /* ex */)
     {
diff --git a/glom/libglom/connectionpool_backends/postgres.cc 
b/glom/libglom/connectionpool_backends/postgres.cc
index f51526f..a0ecb4c 100644
--- a/glom/libglom/connectionpool_backends/postgres.cc
+++ b/glom/libglom/connectionpool_backends/postgres.cc
@@ -92,13 +92,13 @@ Glib::RefPtr<Gnome::Gda::Connection> Postgres::attempt_connect(const Glib::ustri
     {
       connection = Gnome::Gda::Connection::create_from_string("PostgreSQL",
         cnc_string, auth_string,
-        Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+        Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
     }
     else
     {
       connection = Gnome::Gda::Connection::open_from_string("PostgreSQL",
         cnc_string, auth_string,
-        Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+        Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
 
       connection->statement_execute_non_select("SET DATESTYLE = 'ISO'");
       data_model = connection->statement_execute_select("SELECT version()");
@@ -118,7 +118,7 @@ Glib::RefPtr<Gnome::Gda::Connection> Postgres::attempt_connect(const Glib::ustri
     {
       temp_conn = Gnome::Gda::Connection::open_from_string("PostgreSQL",
         cnc_string_with_db, auth_string,
-        Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+        Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
     }
     catch(const Glib::Error& /* ex */)
     {
diff --git a/glom/libglom/connectionpool_backends/sqlite.cc b/glom/libglom/connectionpool_backends/sqlite.cc
index eccce9f..8d57164 100644
--- a/glom/libglom/connectionpool_backends/sqlite.cc
+++ b/glom/libglom/connectionpool_backends/sqlite.cc
@@ -80,13 +80,13 @@ Glib::RefPtr<Gnome::Gda::Connection> Sqlite::connect(const Glib::ustring& databa
       {
          connection = Gnome::Gda::Connection::create_from_string("SQLite",
           cnc_string, auth_string,
-          Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+          Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
       }
       else
       {
         connection = Gnome::Gda::Connection::open_from_string("SQLite",
           cnc_string, auth_string,
-          Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+          Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
       }
     }
   }
@@ -129,7 +129,7 @@ bool Sqlite::create_database(const SlotProgress& slot_progress, const Glib::ustr
   auto cnc =
     Gnome::Gda::Connection::open_from_string("SQLite",
       cnc_string, "",
-      Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
+      Gnome::Gda::Connection::Options::SQL_IDENTIFIERS_CASE_SENSITIVE);
 
   if(slot_progress)
     slot_progress();


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