summaryrefslogtreecommitdiff
path: root/src/mintdb/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-14 21:06:13 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-14 21:06:13 +0200
commitd7ec46f9c7040e0def7c8c14249d8f06ee41a98a (patch)
treeaab5e2a895c1bad965ca936e49ab7bf486827d9b /src/mintdb/plugin_mintdb_postgres.c
parentc21da52b685cce8b806f5554b2722765735bd877 (diff)
downloadexchange-d7ec46f9c7040e0def7c8c14249d8f06ee41a98a.tar.gz
exchange-d7ec46f9c7040e0def7c8c14249d8f06ee41a98a.tar.bz2
exchange-d7ec46f9c7040e0def7c8c14249d8f06ee41a98a.zip
fix db insert
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index b0fe11b59..d319acad0 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -2478,11 +2478,10 @@ postgres_insert_refresh_commit_coins (void *cls,
TALER_PQ_query_param_uint16 (&coin_off),
TALER_PQ_query_param_fixed_size (rle,
rle_size),
- TALER_PQ_query_param_fixed_size (commit_coins->coin_ev,
- commit_coins->coin_ev_size),
+ TALER_PQ_query_param_fixed_size (commit_coins[i].coin_ev,
+ commit_coins[i].coin_ev_size),
TALER_PQ_query_param_end
};
-
result = TALER_PQ_exec_prepared (session->conn,
"insert_refresh_commit_coin",
params);