aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
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"