[libgda] Ports to GdaConnection's new API
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Ports to GdaConnection's new API
- Date: Sat, 23 Feb 2019 00:36:17 +0000 (UTC)
commit 2aae5a89c011d340febce4e96ba1ad64fbc5e6f3
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Fri Feb 22 16:19:52 2019 -0600
Ports to GdaConnection's new API
control-center/gdaui-dsn-editor.c | 2 +-
testing/gda-test-blob.c | 2 +-
testing/virtual-test-2.c | 2 +-
tools/common/t-connection.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/control-center/gdaui-dsn-editor.c b/control-center/gdaui-dsn-editor.c
index 91a281ae8..a1abb6bcb 100644
--- a/control-center/gdaui-dsn-editor.c
+++ b/control-center/gdaui-dsn-editor.c
@@ -332,7 +332,7 @@ dsn_test_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *state, gpointer data
if (login)
cinfo = gdaui_login_get_connection_information (login);
- cnc = gda_connection_open_from_dsn (dsn,
+ cnc = gda_connection_open_from_dsn_name (dsn,
cinfo ? cinfo->auth_string : NULL,
GDA_CONNECTION_OPTIONS_NONE, &error);
if (cnc) {
diff --git a/testing/gda-test-blob.c b/testing/gda-test-blob.c
index e04a6678a..24577d66a 100644
--- a/testing/gda-test-blob.c
+++ b/testing/gda-test-blob.c
@@ -98,7 +98,7 @@ main (int argc, char **argv)
if (!info)
g_error (_("DSN '%s' is not declared"), dsn);
else {
- cnc = gda_connection_open_from_dsn (info->name, auth_string ? auth_string :
info->auth_string,
+ cnc = gda_connection_open_from_dsn_name (info->name, auth_string ? auth_string :
info->auth_string,
0, &error);
if (!cnc) {
g_warning (_("Can't open connection to DSN %s: %s\n"), info->name,
diff --git a/testing/virtual-test-2.c b/testing/virtual-test-2.c
index c9299982a..5c4edd542 100644
--- a/testing/virtual-test-2.c
+++ b/testing/virtual-test-2.c
@@ -42,7 +42,7 @@ main ()
gda_init ();
/* open connection */
- cnc = gda_connection_open_from_dsn ("SalesTest", NULL,
+ cnc = gda_connection_open_from_dsn_name ("SalesTest", NULL,
GDA_CONNECTION_OPTIONS_READ_ONLY, &error);
if (!cnc) {
g_print ("Could not open connection to the SalesTest DSN: %s\n",
diff --git a/tools/common/t-connection.c b/tools/common/t-connection.c
index 113050ec0..3df377294 100644
--- a/tools/common/t-connection.c
+++ b/tools/common/t-connection.c
@@ -875,7 +875,7 @@ t_connection_open (const gchar *cnc_name, const gchar *cnc_string, const gchar *
real_auth_string = g_string_free (string, FALSE);
}
if (info && !real_provider)
- newcnc = gda_connection_open_from_dsn (real_cnc_string, real_auth_string,
+ newcnc = gda_connection_open_from_dsn_name (real_cnc_string, real_auth_string,
GDA_CONNECTION_OPTIONS_AUTO_META_DATA, error);
else
newcnc = gda_connection_open_from_string (NULL, real_cnc_string, real_auth_string,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]