aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-08 15:22:49 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-08 15:22:49 +0200
commit05ccc457aa47dfa0a0b325176fbeb424a4fbb638 (patch)
tree37bd3b78bc0c6e4245d2f7a35ac2174365374c67 /src/backenddb
parent37d74d45ba34d290226446210044607c22242ad8 (diff)
Get testcase pass using ORDER BY
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index f7aaf005..1ac8d4ee 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -196,8 +196,9 @@ postgres_initialize (void *cls)
",merchant_refunds.refund_amount_curr"
" FROM merchant_deposits"
" LEFT OUTER JOIN merchant_refunds USING (coin_pub)"
- " WHERE merchant_deposits.coin_pub=$1",
- /*FIXME, need a GROUP BY coin_pub here*/
+ " WHERE merchant_deposits.coin_pub=$1"
+ /*FIXME, GROUP BY better than ORDER BY*/
+ " ORDER BY merchant_deposits.coin_pub",
1),
GNUNET_PQ_make_prepare ("insert_transaction",
"INSERT INTO merchant_transactions"