aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-11-10 02:52:44 +0100
committerFlorian Dold <florian@dold.me>2024-11-10 02:52:44 +0100
commit90eb0958ecc938c42c17e3fdc34fb23ceb79abc4 (patch)
tree8856d59aa46613c661289f32e9b479861cf10a64
parent63bb33a5bd01a459d2a8996119346dad34209df4 (diff)
-fix query
-rw-r--r--src/exchangedb/exchange_do_insert_successor_measure.sql3
-rw-r--r--src/exchangedb/pg_insert_successor_measure.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/exchangedb/exchange_do_insert_successor_measure.sql b/src/exchangedb/exchange_do_insert_successor_measure.sql
index a98a6c4a8..d96af2927 100644
--- a/src/exchangedb/exchange_do_insert_successor_measure.sql
+++ b/src/exchangedb/exchange_do_insert_successor_measure.sql
@@ -23,6 +23,7 @@ CREATE FUNCTION exchange_do_insert_successor_measure(
IN in_jmeasures TEXT, -- can be NULL
OUT out_last_date INT8,
OUT out_account_unknown BOOLEAN,
+ OUT out_legitimization_measure_serial_id INT8
)
LANGUAGE plpgsql
AS $$
@@ -152,5 +153,5 @@ INSERT INTO legitimization_outcomes
END $$;
-COMMENT ON FUNCTION exchange_do_insert_successor_measure(BYTEA, INT8, INT8, TEXT, TEXT, INT8)
+COMMENT ON FUNCTION exchange_do_insert_successor_measure(BYTEA, INT8, INT8, TEXT, TEXT)
IS 'Checks whether the AML officer is eligible to make AML decisions and if so inserts the decision into the table';
diff --git a/src/exchangedb/pg_insert_successor_measure.c b/src/exchangedb/pg_insert_successor_measure.c
index 0be070bdd..099360005 100644
--- a/src/exchangedb/pg_insert_successor_measure.c
+++ b/src/exchangedb/pg_insert_successor_measure.c
@@ -76,6 +76,7 @@ TEH_PG_insert_successor_measure (
"SELECT"
",out_account_unknown"
",out_last_date"
+ ",out_legitimization_measure_serial_id"
" FROM exchange_do_insert_successor_measure"
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14);");
qs = GNUNET_PQ_eval_prepared_singleton_select (pg->conn,