-add missing PREPARE

This commit is contained in:
Christian Grothoff 2022-11-02 17:54:25 +01:00
parent a51517f64c
commit 789af40b5c
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -125,12 +125,20 @@ TEH_PG_select_all_purse_decisions_above_serial_id (
};
enum GNUNET_DB_QueryStatus qs;
qs = GNUNET_PQ_eval_prepared_multi_select (pg->conn,
"audit_get_all_purse_decision_incr",
params,
&
all_purse_decision_serial_helper_cb,
&dsc);
PREPARE (pg,
"audit_all_get_purse_decisions_incr",
"SELECT"
" purse_pub"
",refunded"
",purse_decision_serial_id"
" WHERE purse_decision_serial_id>=$1"
" ORDER BY purse_decision_serial_id ASC;");
qs = GNUNET_PQ_eval_prepared_multi_select (
pg->conn,
"audit_get_all_purse_decision_incr",
params,
&all_purse_decision_serial_helper_cb,
&dsc);
if (GNUNET_OK != dsc.status)
return GNUNET_DB_STATUS_HARD_ERROR;
return qs;