resolve duplicate prepared statement

This commit is contained in:
Christian Grothoff 2022-11-14 05:13:27 +01:00
parent 4ea2e0c42a
commit ddbdb0a742
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -265,10 +265,9 @@ prepare_statements (struct PostgresClosure *pg)
{
enum GNUNET_GenericReturnValue ret;
struct GNUNET_PQ_PreparedStatement ps[] = {
/* Used in #postgres_insert_denomination_info() and
#postgres_add_denomination_key() */
/* Used in #postgres_add_denomination_key() */
GNUNET_PQ_make_prepare (
"denomination_insert",
"add_denomination_key",
"INSERT INTO denominations "
"(denom_pub_hash"
",denom_pub"
@ -8409,7 +8408,7 @@ postgres_add_denomination_key (
TALER_denom_fee_check_currency (meta->value.currency,
&meta->fees));
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"denomination_insert",
"add_denomination_key",
iparams);
}