summaryrefslogtreecommitdiff
path: root/src/auditordb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-13 14:55:58 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-13 14:55:58 +0100
commit9c20b62eb965c2b8a9e94f56283d5671e37bc447 (patch)
treecda1596854b194e6686459ecfa0aed186c5a10aa /src/auditordb
parent8d5f42fe0cff134120e462c7e905403f7d38b9d6 (diff)
downloadexchange-9c20b62eb965c2b8a9e94f56283d5671e37bc447.tar.gz
exchange-9c20b62eb965c2b8a9e94f56283d5671e37bc447.tar.bz2
exchange-9c20b62eb965c2b8a9e94f56283d5671e37bc447.zip
database setup logic is now external to httpd
Diffstat (limited to 'src/auditordb')
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index 4515e779..2f1b5234 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;
};