summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-17 11:01:19 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-17 11:01:19 +0100
commited1db63a48840c417fb49dc5f0711544d50faee6 (patch)
tree268b2262fd73c69fd24fcbe444b4e9be5f7e1178 /src/exchangedb/plugin_exchangedb_postgres.c
parent422b0ffd4cefb4717bbc9fbb7be442aff3a13c76 (diff)
downloadexchange-ed1db63a48840c417fb49dc5f0711544d50faee6.tar.gz
exchange-ed1db63a48840c417fb49dc5f0711544d50faee6.tar.bz2
exchange-ed1db63a48840c417fb49dc5f0711544d50faee6.zip
fix DB query and error handling
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index a5066e883..9bfe777f4 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -3811,6 +3811,10 @@ postgres_set_kyc_ok (void *cls,
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&payment_target_uuid),
+ GNUNET_PQ_query_param_end
+ };
+ struct GNUNET_PQ_QueryParam params2[] = {
+ GNUNET_PQ_query_param_uint64 (&payment_target_uuid),
GNUNET_PQ_query_param_string (id),
GNUNET_PQ_query_param_end
};
@@ -3827,7 +3831,7 @@ postgres_set_kyc_ok (void *cls,
qs = GNUNET_PQ_eval_prepared_non_select (pg->conn,
"set_kyc_ok",
- params);
+ params2);
if (qs <= 0)
return qs;
qs = GNUNET_PQ_eval_prepared_singleton_select (pg->conn,