summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-08 11:46:39 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-08 11:46:39 +0100
commit9e8f9c9d4b8febe029594ab19ac2d239154fd342 (patch)
treee7c2e170bacb8e68cd5ade46ec8291c01d7c2e4f /src
parent5bc8e40c420f8f914ae1562c4c2e50840fa690a3 (diff)
downloadmerchant-9e8f9c9d4b8febe029594ab19ac2d239154fd342.tar.gz
merchant-9e8f9c9d4b8febe029594ab19ac2d239154fd342.tar.bz2
merchant-9e8f9c9d4b8febe029594ab19ac2d239154fd342.zip
Fix backenddb
Diffstat (limited to 'src')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c6
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);