[libgda] postgres: provider use only gresources
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] postgres: provider use only gresources
- Date: Fri, 26 Oct 2018 04:39:23 +0000 (UTC)
commit 5340a038ff6f75dc8ffd20ce0a05b58eb33c101e
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Oct 25 23:38:50 2018 -0500
postgres: provider use only gresources
providers/postgres/gda-postgres-provider.c | 11 ++---------
tests/Makefile.am | 4 ++--
2 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index 5de4f2db1..598cc14a1 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -855,15 +855,8 @@ gda_postgres_provider_create_operation (GdaServerProvider *provider, GdaConnecti
g_free (file);
}
- gchar *tmp;
- tmp = g_strdup_printf ("%s.xml", str);
- dir = gda_gbr_get_file_path (GDA_DATA_DIR, LIBGDA_ABI_NAME, NULL);
- file = gda_server_provider_find_file (provider, dir, tmp);
- g_free (dir);
- g_free (tmp);
-
- if (!file)
- file = g_strdup_printf ("/spec/postgres/%s.raw.xml", str);
+
+ file = g_strdup_printf ("/spec/postgres/%s.raw.xml", str);
op = GDA_SERVER_OPERATION (g_object_new (GDA_TYPE_SERVER_OPERATION,
"op-type", type,
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b4cc4c0a1..795cf7fcd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,8 +1,8 @@
noinst_LTLIBRARIES = libgda-test-6.0.la
TESTS_ENVIRONMENT = GDA_TOP_SRC_DIR="$(abs_top_srcdir)" GDA_TOP_BUILD_DIR="$(abs_top_builddir)"
-TESTS = test-ddl-creator test-bin-converter test-sql-identifier test-identifiers-quotes test-sql-builder
test-connection-string-split test-input-parsers test-quark-list test-sql-renderer test-server-operation
test-provider-meta
-check_PROGRAMS = test-ddl-creator test-bin-converter test-sql-identifier test-identifiers-quotes
test-sql-builder test-connection-string-split test-input-parsers test-quark-list test-sql-renderer
test-server-operation test-provider-meta
+TESTS = test-ddl-creator test-bin-converter test-sql-identifier test-identifiers-quotes test-sql-builder
test-connection-string-split test-input-parsers test-quark-list test-sql-renderer test-server-operation
+check_PROGRAMS = test-ddl-creator test-bin-converter test-sql-identifier test-identifiers-quotes
test-sql-builder test-connection-string-split test-input-parsers test-quark-list test-sql-renderer
test-server-operation
if HAVE_UI
UI_EXTENSION = ui
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]