From 9c20b62eb965c2b8a9e94f56283d5671e37bc447 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 13 Mar 2020 14:55:58 +0100 Subject: database setup logic is now external to httpd --- src/auditordb/plugin_auditordb_postgres.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/auditordb') diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c index 4515e7795..2f1b5234d 100644 --- a/src/auditordb/plugin_auditordb_postgres.c +++ b/src/auditordb/plugin_auditordb_postgres.c @@ -37,7 +37,8 @@ * @param field name of the database field to fetch amount from * @param[out] amountp pointer to amount to set */ -#define TALER_PQ_RESULT_SPEC_AMOUNT(field,amountp) TALER_PQ_result_spec_amount ( \ +#define TALER_PQ_RESULT_SPEC_AMOUNT(field,amountp) \ + TALER_PQ_result_spec_amount ( \ field,pg->currency,amountp) /** @@ -62,6 +63,11 @@ struct TALER_AUDITORDB_Session */ struct GNUNET_PQ_Context *conn; + /** + * Name of the ongoing transaction, used to debug cases where + * a transaction is not properly terminated via COMMIT or + * ROLLBACK. + */ const char *transaction_name; }; -- cgit v1.2.3