summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-14 05:13:27 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-14 05:13:27 +0100
commitddbdb0a742ffb1d5d08657abb8ae5e3ca3caaf92 (patch)
treed08a949037352d0b11fea6f385735271a9edbcc6 /src/exchangedb
parent4ea2e0c42a5d5591241570dd26a54e0b22a89b33 (diff)
downloadexchange-ddbdb0a742ffb1d5d08657abb8ae5e3ca3caaf92.tar.gz
exchange-ddbdb0a742ffb1d5d08657abb8ae5e3ca3caaf92.tar.bz2
exchange-ddbdb0a742ffb1d5d08657abb8ae5e3ca3caaf92.zip
resolve duplicate prepared statement
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 5b8d3d613..aa16e7ffc 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -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);
}