aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-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 8091cba41..238322c93 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -3483,8 +3483,8 @@ prepare_statements (struct PostgresClosure *pg)
",balance_frac"
",merge_timestamp"
" FROM purse_requests"
- " WHERE purse_pub=$1"
- " LEFT JOIN purse_merges ON (purse_pub);",
+ " LEFT JOIN purse_merges USING (purse_pub)"
+ " WHERE purse_pub=$1;",
1),
/* Used in #postgres_select_purse_request */
GNUNET_PQ_make_prepare (