[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 03/05: make reserves_update more canonical
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 03/05: make reserves_update more canonical, avoiding odd WHERE constraint that is unnecessary |
Date: |
Fri, 14 Jul 2017 19:28:27 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 0ea012e316515bc41d11f7f6a0c78d0b08c4fb83
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jul 14 17:52:09 2017 +0200
make reserves_update more canonical, avoiding odd WHERE constraint that is
unnecessary
---
src/exchangedb/plugin_exchangedb_postgres.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c
b/src/exchangedb/plugin_exchangedb_postgres.c
index 7b84b23..06a6f87 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",
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (e140b41 -> a301aad), gnunet, 2017/07/14
- [GNUnet-SVN] [taler-exchange] 02/05: select on denom_pub_hash instead of denom_pub as the hash is a primary key, gnunet, 2017/07/14
- [GNUnet-SVN] [taler-exchange] 03/05: make reserves_update more canonical, avoiding odd WHERE constraint that is unnecessary,
gnunet <=
- [GNUnet-SVN] [taler-exchange] 05/05: add missing indices where needed, gnunet, 2017/07/14
- [GNUnet-SVN] [taler-exchange] 04/05: add UNIQUE constraint on BIGSERIAL columns as that is not automatic in Postgres, gnunet, 2017/07/14
- [GNUnet-SVN] [taler-exchange] 01/05: clean up PQ tables (renamings, remove redunant column), and primarily fix #4751, gnunet, 2017/07/14