diff options
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/pg_insert_deposit.c | 2 | ||||
-rw-r--r-- | src/exchangedb/pg_insert_refund.c | 11 | ||||
-rw-r--r-- | src/exchangedb/pg_insert_wire_fee.c | 1 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/exchangedb/pg_insert_deposit.c b/src/exchangedb/pg_insert_deposit.c index ec4d49bf9..a4d68fe19 100644 --- a/src/exchangedb/pg_insert_deposit.c +++ b/src/exchangedb/pg_insert_deposit.c @@ -97,8 +97,6 @@ TEH_PG_insert_deposit (void *cls, " FROM known_coins" " WHERE coin_pub=$1" " ON CONFLICT DO NOTHING;"); - - return GNUNET_PQ_eval_prepared_non_select (pg->conn, "insert_deposit", params); diff --git a/src/exchangedb/pg_insert_refund.c b/src/exchangedb/pg_insert_refund.c index 8f9466575..020750870 100644 --- a/src/exchangedb/pg_insert_refund.c +++ b/src/exchangedb/pg_insert_refund.c @@ -45,16 +45,15 @@ TEH_PG_insert_refund (void *cls, TALER_amount_cmp_currency (&refund->details.refund_amount, &refund->details.refund_fee)); - /* Used in #postgres_insert_refund() to store refund information */ PREPARE (pg, "insert_refund", "INSERT INTO refunds " - "(coin_pub " + "(coin_pub" ",deposit_serial_id" - ",merchant_sig " - ",rtransaction_id " - ",amount_with_fee_val " - ",amount_with_fee_frac " + ",merchant_sig" + ",rtransaction_id" + ",amount_with_fee_val" + ",amount_with_fee_frac" ") SELECT $1, deposit_serial_id, $3, $5, $6, $7" " FROM deposits" " WHERE coin_pub=$1" diff --git a/src/exchangedb/pg_insert_wire_fee.c b/src/exchangedb/pg_insert_wire_fee.c index ac14a8cbb..6d94e3d56 100644 --- a/src/exchangedb/pg_insert_wire_fee.c +++ b/src/exchangedb/pg_insert_wire_fee.c @@ -26,6 +26,7 @@ #include "pg_helper.h" #include "pg_get_wire_fee.h" + enum GNUNET_DB_QueryStatus TEH_PG_insert_wire_fee (void *cls, const char *type, |