aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_insert_kyc_attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/pg_insert_kyc_attributes.c')
-rw-r--r--src/exchangedb/pg_insert_kyc_attributes.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/exchangedb/pg_insert_kyc_attributes.c b/src/exchangedb/pg_insert_kyc_attributes.c
index e7a0c12bd..897e2a4a3 100644
--- a/src/exchangedb/pg_insert_kyc_attributes.c
+++ b/src/exchangedb/pg_insert_kyc_attributes.c
@@ -26,6 +26,13 @@
#include "pg_helper.h"
+/*
+ * FIXME:
+ * This function does *so* much more than inserting KYC attributes.
+ * Sometimes it doesn't even insert KYC attributes at all.
+ * => Rename?
+ */
+
enum GNUNET_DB_QueryStatus
TEH_PG_insert_kyc_attributes (
void *cls,
@@ -56,7 +63,9 @@ TEH_PG_insert_kyc_attributes (
char *kyc_completed_notify_s
= GNUNET_PQ_get_event_notify_channel (&rep.header);
struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&process_row),
+ (0 == process_row)
+ ? GNUNET_PQ_query_param_null ()
+ : GNUNET_PQ_query_param_uint64 (&process_row),
GNUNET_PQ_query_param_auto_from_type (h_payto),
GNUNET_PQ_query_param_uint32 (&birthday),
GNUNET_PQ_query_param_string (provider_name),