aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_persist_policy_details.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-22 15:13:34 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-22 15:13:34 +0100
commitf8bfc4dc9d9dcb69ccdd95258aea53dabf997246 (patch)
tree22ef212d0fad68b13b74e923b56d98389066ec57 /src/exchangedb/pg_persist_policy_details.c
parentd131951fbe09b3415c9976acd11f660d51493086 (diff)
downloadexchange-f8bfc4dc9d9dcb69ccdd95258aea53dabf997246.tar.xz
address DB FIXMEs for AML
Diffstat (limited to 'src/exchangedb/pg_persist_policy_details.c')
-rw-r--r--src/exchangedb/pg_persist_policy_details.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/exchangedb/pg_persist_policy_details.c b/src/exchangedb/pg_persist_policy_details.c
index 2b7787878..3bc7afa98 100644
--- a/src/exchangedb/pg_persist_policy_details.c
+++ b/src/exchangedb/pg_persist_policy_details.c
@@ -59,7 +59,15 @@ TEH_PG_persist_policy_details (
GNUNET_PQ_result_spec_end
};
- // FIXME: prepare missing!!?!
+ PREPARE (pg,
+ "call_insert_or_update_policy_details",
+ "SELECT"
+ " out_policy_details_serial_id AS policy_details_serial_id"
+ ",out_accumulated_total_val AS accumulated_total_val"
+ ",out_accumulated_total_frac AS accumulated_total_frac"
+ ",out_fulfillment_state AS fulfillment_state"
+ " FROM exchange_do_insert_or_update_policy_details"
+ "($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13);");
return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
"call_insert_or_update_policy_details",
params,