summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-01 13:34:14 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-01 13:34:14 +0100
commitb88b36ecad89ab758000dedea2829a0500471bc0 (patch)
tree87af03617712678c5b3d2beea4097d335c039758 /src/exchangedb
parentc231e9925c6ac3dcd33205b378c9f648f1fe901e (diff)
downloadexchange-b88b36ecad89ab758000dedea2829a0500471bc0.tar.gz
exchange-b88b36ecad89ab758000dedea2829a0500471bc0.tar.bz2
exchange-b88b36ecad89ab758000dedea2829a0500471bc0.zip
style fixes
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 219ea0647..bfa5e1f67 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -1294,6 +1294,19 @@ prepare_statements (struct PostgresClosure *pg)
") VALUES "
"($1, $2, $3, $4, $5, $6);",
6),
+ GNUNET_PQ_make_prepare (
+ "insert_into_table_wire_out",
+ "INSERT INTO wire_out"
+ "(wireout_uuid"
+ ",execution_date"
+ ",wtid_raw"
+ ",wire_target_serial_id"
+ ",exchange_account_section"
+ ",amount_val"
+ ",amount_frac"
+ ") VALUES "
+ "($1, $2, $3, $4, $5, $6, $7);",
+ 7),
/* Used in #postgres_wire_prepare_data_insert() to store
wire transfer information before actually committing it with the bank */
GNUNET_PQ_make_prepare (
@@ -2580,19 +2593,6 @@ prepare_statements (struct PostgresClosure *pg)
"($1, $2, $3, $4, $5, $6);",
6),
GNUNET_PQ_make_prepare (
- "insert_into_table_wire_out",
- "INSERT INTO wire_out"
- "(wireout_uuid"
- ",execution_date"
- ",wtid_raw"
- ",wire_target_serial_id"
- ",exchange_account_section"
- ",amount_val"
- ",amount_frac"
- ") VALUES "
- "($1, $2, $3, $4, $5, $6, $7);",
- 7),
- GNUNET_PQ_make_prepare (
"insert_into_table_aggregation_tracking",
"INSERT INTO aggregation_tracking"
"(aggregation_serial_id"
@@ -7957,6 +7957,8 @@ postgres_store_wire_transfer_out (
GNUNET_PQ_query_param_end
};
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_TIME_round_abs (&date));
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"insert_wire_out",
params);
@@ -7971,7 +7973,7 @@ postgres_store_wire_transfer_out (
* @return #GNUNET_OK on success,
* #GNUNET_SYSERR on DB errors
*/
-static int
+static enum GNUNET_GenericReturnValue
postgres_gc (void *cls)
{
struct PostgresClosure *pg = cls;