[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: fix check of db ret
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: fix check of db returned status (INSERT returns 1) |
Date: |
Tue, 13 Jun 2017 10:34:23 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 48064a2 fix check of db returned status (INSERT returns 1)
48064a2 is described below
commit 48064a2b4fa6d033b7dcc7170f50cafbe3d4d2f3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jun 13 10:33:45 2017 +0200
fix check of db returned status (INSERT returns 1)
---
src/backenddb/plugin_merchantdb_postgres.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index df7fe22..11cd21d 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1993,7 +1993,8 @@ process_deposits_cb (void *cls,
/*Always commit the smallest as refund*/
- if (0 != insert_refund (ctx->pg,
+ /*Empirically, INSERT returns 1 result*/
+ if (1 != insert_refund (ctx->pg,
ctx->h_contract_terms,
&coin_pub,
ctx->reason,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: fix check of db returned status (INSERT returns 1),
gnunet <=