[libgda] gda_connection_new_from_string(): Do not open the connection.



commit 1e30ad6fac17693df3768660dd44a30358d629f7
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Nov 10 12:19:58 2011 +0100

    gda_connection_new_from_string(): Do not open the connection.
    
    That happens in gda_connectino_open_from_string() instead.

 libgda/gda-connection.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 3d4c184..5ec9894 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -1285,12 +1285,6 @@ gda_connection_new_from_string (const gchar *provider_name, const gchar *cnc_str
 								      "cnc-string", real_cnc, 
 								      "auth-string", auth_string ? auth_string : real_auth_string, 
 								      "options", options, NULL);
-			
-			/* open the connection */
-			if (!gda_connection_open (cnc, error)) {
-				g_object_unref (cnc);
-				cnc = NULL;
-			}
 		}
 	}
 



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