[libgda] postgres: added debug information for _routines table
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] postgres: added debug information for _routines table
- Date: Wed, 9 Jan 2019 22:53:18 +0000 (UTC)
commit a875064929ad77449940de68061cb773f8aef77e
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Wed Jan 9 16:51:48 2019 -0600
postgres: added debug information for _routines table
Meta data generation can fail on CI, so more
debug information is required
providers/reuseable/postgres/gda-postgres-meta.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/providers/reuseable/postgres/gda-postgres-meta.c
b/providers/reuseable/postgres/gda-postgres-meta.c
index d86796a5c..0acfe7d9c 100644
--- a/providers/reuseable/postgres/gda-postgres-meta.c
+++ b/providers/reuseable/postgres/gda-postgres-meta.c
@@ -1720,14 +1720,18 @@ _gda_postgres_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnecti
/* nothing for this version of PostgreSQL */
return TRUE;
}
+ if (!gda_connection_statement_prepare (cnc, internal_stmt[I_STMT_ROUTINES_ALL], error)) {
+ return FALSE;
+ }
#ifdef GDA_DEBUG
- gchar *st = gda_connection_statement_to_sql (cnc, internal_stmt[I_STMT_ROUTINES_ALL], i_set,
GDA_STATEMENT_SQL_PARAMS_AS_VALUES, NULL, error);
+ gchar *st = gda_connection_statement_to_sql (cnc, internal_stmt[I_STMT_ROUTINES_ALL], NULL,
GDA_STATEMENT_SQL_PARAMS_AS_VALUES, NULL, error);
+ g_message ("Provider: %s", gda_connection_get_provider_name (cnc));
if (st == NULL) {
- g_warning ("Error rendering Routines SQL For ONE Routine: %s",
+ g_warning ("Error rendering Routines SQL For ALL Routines: %s",
(*error) && (*error)->message ?
(*error)->message : "No error set");
g_clear_error (error);
} else {
- g_message ("Routine SQL: %s", st);
+ g_message ("Routine SQL : %s", st);
g_free (st);
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]