glom r1863 - in trunk: . glom/libglom glom/libglom/connectionpool_backends



Author: murrayc
Date: Tue Jan 27 16:06:12 2009
New Revision: 1863
URL: http://svn.gnome.org/viewvc/glom?rev=1863&view=rev

Log:
2009-01-27  Murray Cumming  <murrayc murrayc com>

* glom/libglom/connectionpool_backends/postgres.cc
attempt_create_database(): Do not pass an empty Set to 
create_operation() because I added a method overload in libgdamm.

Modified:
   trunk/ChangeLog
   trunk/glom/libglom/connectionpool.cc
   trunk/glom/libglom/connectionpool_backends/postgres.cc

Modified: trunk/glom/libglom/connectionpool.cc
==============================================================================
--- trunk/glom/libglom/connectionpool.cc	(original)
+++ trunk/glom/libglom/connectionpool.cc	Tue Jan 27 16:06:12 2009
@@ -261,7 +261,7 @@
 #ifdef GLIBMM_EXCEPTIONS_ENABLED
     try
     {
-      return provider->create_operation(connection, type, Gnome::Gda::Set::create());
+      return provider->create_operation(connection, type);
     }
     catch(const Glib::Error& ex)
     {
@@ -269,7 +269,7 @@
       return Glib::RefPtr<Gnome::Gda::ServerOperation>();
     }
 #else
-    return provider->create_operation(connection, type, Gnome::Gda::Set::create(), error);
+    return provider->create_operation(connection, type, error);
 #endif
   }
 

Modified: trunk/glom/libglom/connectionpool_backends/postgres.cc
==============================================================================
--- trunk/glom/libglom/connectionpool_backends/postgres.cc	(original)
+++ trunk/glom/libglom/connectionpool_backends/postgres.cc	Tue Jan 27 16:06:12 2009
@@ -385,6 +385,7 @@
   if(error)
     return false;
 
+  //TODO: Why is this here but not in the EXCEPTIONS_ENABLED part?
   op = cnc->create_operation(Gnome::Gda::SERVER_OPERATION_CREATE_DB, set, error);
   if(error)
     return false;



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