summaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-20 20:08:59 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-20 20:09:07 +0200
commit37c253b04aafb08b5ea9cbdf81a370d85762e269 (patch)
treeb3b19c219b19fc00fda092aaaf5100e62581a7a7 /src/backenddb
parentb80c3d79e4a1638f5189b7fe549b814f2ea0b5f4 (diff)
downloadmerchant-37c253b04aafb08b5ea9cbdf81a370d85762e269.tar.gz
merchant-37c253b04aafb08b5ea9cbdf81a370d85762e269.tar.bz2
merchant-37c253b04aafb08b5ea9cbdf81a370d85762e269.zip
fix db
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 06fc40cc..8ef4d47c 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -350,9 +350,13 @@ postgres_initialize (void *cls)
",reason"
",refund_amount_val"
",refund_amount_frac"
- ",refund_amount_curr) VALUES"
- "($1, $2, $3, $4, $5, $6, $7)",
- 7),
+ ",refund_amount_curr"
+ ",refund_fee_val"
+ ",refund_fee_frac"
+ ",refund_fee_curr"
+ ") VALUES"
+ "($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)",
+ 10),
GNUNET_PQ_make_prepare ("insert_proof",
"INSERT INTO merchant_proofs"
"(exchange_uri"
@@ -1864,6 +1868,7 @@ insert_refund (void *cls,
GNUNET_PQ_query_param_auto_from_type (coin_pub),
GNUNET_PQ_query_param_string (reason),
TALER_PQ_query_param_amount (refund),
+ TALER_PQ_query_param_amount (refund_fee),
GNUNET_PQ_query_param_end
};