aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-12 11:10:32 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-12 11:10:32 +0200
commit93eb88a8c9cb520808bb39c9f4bc527c9f01fc57 (patch)
treec1ec83d613cbbd65b48a991afbb81bf5ed1df3c9 /src/exchangedb
parent81732d49ccd2a595a02fb4a80399767785d4d7dd (diff)
downloadexchange-93eb88a8c9cb520808bb39c9f4bc527c9f01fc57.tar.xz
-fix argument order
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index aaf38ea42..1839b13be 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -1515,7 +1515,7 @@ prepare_statements (struct PostgresClosure *pg)
" ,coin_pub"
" ,amount_with_fee_val AS amount_val"
" ,amount_with_fee_frac AS amount_frac)"
- " ,ref AS (" /* find applicable refunds */
+ " ,ref AS (" /* find applicable refunds -- NOTE: may do a full join on the master, maybe find a left-join way to integrate with query above to push it to the shards? */
" SELECT"
" amount_with_fee_val AS refund_val"
" ,amount_with_fee_frac AS refund_frac"
@@ -1536,7 +1536,7 @@ prepare_statements (struct PostgresClosure *pg)
" ,denom.fee_deposit_frac AS fee_frac"
" ,cs.deposit_serial_id" /* ensures we get the fee for each coin, not once per denomination */
" FROM coins_with_fees cs"
- " JOIN known_coins kc"
+ " JOIN known_coins kc" /* NOTE: may do a full join on the master, maybe find a left-join way to integrate with query above to push it to the shards? */
" USING (coin_pub)"
" JOIN denominations denom"
" USING (denominations_serial))"