gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 02/02: Fix auditordb.


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 02/02: Fix auditordb.
Date: Mon, 22 Oct 2018 12:47:57 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

commit 8eda33bbe8ae220c598ab0d8342f732e002c6067
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Oct 22 12:44:56 2018 +0200

    Fix auditordb.
    
    Wrong columns names.
---
 src/auditordb/plugin_auditordb_postgres.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/auditordb/plugin_auditordb_postgres.c 
b/src/auditordb/plugin_auditordb_postgres.c
index 6af6cf0f..22f58fb7 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -370,9 +370,9 @@ postgres_create_tables (void *cls)
                             ",h_wire BYTEA CHECK (LENGTH(h_wire)=64)"
                            ",timestamp INT8 NOT NULL"
                            ",refund_deadline INT8 NOT NULL"
-                           ",amount_with_fee_val INT8 NOT NULL"
-                           ",amount_with_fee_frac INT4 NOT NULL"
-                           ",amount_with_fee_curr 
VARCHAR("TALER_CURRENCY_LEN_STR") NOT NULL"
+                           ",amount_without_fee_val INT8 NOT NULL"
+                           ",amount_without_fee_frac INT4 NOT NULL"
+                           ",amount_without_fee_curr 
VARCHAR("TALER_CURRENCY_LEN_STR") NOT NULL"
                             ",coin_pub BYTEA CHECK (LENGTH(coin_pub)=32)"
                             ",merchant_pub BYTEA CHECK 
(LENGTH(merchant_pub)=32)"
                             ",exchange_sig BYTEA CHECK 
(LENGTH(exchange_sig)=64)"
@@ -502,13 +502,15 @@ postgres_prepare (PGconn *db_conn)
                            ",h_wire"
                            ",timestamp"
                            ",refund_deadline"
-                           ",amount_without_fee"
+                           ",amount_without_fee_val"
+                           ",amount_without_fee_frac"
+                           ",amount_without_fee_curr"
                            ",coin_pub"
-                           ",merchant"
+                           ",merchant_pub"
                            ",exchange_sig"
                            ",exchange_pub"
                            ",master_sig" /* master_sig could be normalized... 
*/
-                           ") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11);",
+                           ") VALUES 
($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13);",
                            11),
     /* Used in #postgres_insert_auditor_progress() */
     GNUNET_PQ_make_prepare ("auditor_progress_insert",

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]