diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-02-08 11:46:39 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-02-08 11:46:39 +0100 |
commit | 9e8f9c9d4b8febe029594ab19ac2d239154fd342 (patch) | |
tree | e7c2e170bacb8e68cd5ade46ec8291c01d7c2e4f /src | |
parent | 5bc8e40c420f8f914ae1562c4c2e50840fa690a3 (diff) | |
download | merchant-9e8f9c9d4b8febe029594ab19ac2d239154fd342.tar.gz merchant-9e8f9c9d4b8febe029594ab19ac2d239154fd342.tar.bz2 merchant-9e8f9c9d4b8febe029594ab19ac2d239154fd342.zip |
Fix backenddb
Diffstat (limited to 'src')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 9a528d20..5becc928 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -294,7 +294,7 @@ postgres_initialize (void *cls) PG_PREPARE (pg, "find_transactions_by_date", "SELECT" - " transaction_id" + " h_proposal_data" ",merchant_pub" ",exchange_uri" ",h_wire" @@ -319,7 +319,7 @@ postgres_initialize (void *cls) ",total_amount_frac" ",total_amount_curr" " FROM merchant_transactions" - " WHERE transaction_id=$1" + " WHERE h_proposal_data=$1" " AND merchant_pub=$2", 2); PG_PREPARE (pg, @@ -348,7 +348,7 @@ postgres_initialize (void *cls) ",deposit_fee_curr" ",exchange_proof" " FROM merchant_deposits" - " WHERE transaction_id=$1" + " WHERE h_proposal_data=$1" " AND merchant_pub=$2" " AND coin_pub=$3", 3); |