summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-07-14 17:52:09 +0200
committerChristian Grothoff <christian@grothoff.org>2017-07-14 17:52:09 +0200
commit0ea012e316515bc41d11f7f6a0c78d0b08c4fb83 (patch)
tree1adc4ba2ebbdfb5548fe56526a4c9e5c0dcfdfe5 /src
parente1aa257ee1f05a6e281f188a6512d6c4946b86bd (diff)
downloadexchange-0ea012e316515bc41d11f7f6a0c78d0b08c4fb83.tar.gz
exchange-0ea012e316515bc41d11f7f6a0c78d0b08c4fb83.tar.bz2
exchange-0ea012e316515bc41d11f7f6a0c78d0b08c4fb83.zip
make reserves_update more canonical, avoiding odd WHERE constraint that is unnecessary
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 7b84b232e..06a6f879e 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -566,10 +566,11 @@ postgres_prepare (PGconn *db_conn)
"UPDATE reserves"
" SET"
" expiration_date=$1 "
- ",current_balance_val=$2 "
+ ",current_balance_val=$2"
",current_balance_frac=$3"
- " WHERE current_balance_curr=$4"
- " AND reserve_pub=$5;",
+ ",current_balance_curr=$4"
+ " WHERE"
+ " reserve_pub=$5;",
5),
/* Used in #postgres_reserves_in_insert() to store transaction details */
GNUNET_PQ_make_prepare ("reserves_in_add_transaction",