summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-19 10:59:54 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-19 10:59:54 +0100
commit0f5819de588d01a68c4b8c28c65b752cfad890ab (patch)
tree8377b9157ba04adb0ca20d9c0fd1ac1f5428a8cb /src/exchangedb
parentd8b40ae9b8f85efcee0344570ffd2e8d2da0f6be (diff)
downloadexchange-0f5819de588d01a68c4b8c28c65b752cfad890ab.tar.gz
exchange-0f5819de588d01a68c4b8c28c65b752cfad890ab.tar.bz2
exchange-0f5819de588d01a68c4b8c28c65b752cfad890ab.zip
fix SQL error for pq 9.4
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 1c93bb71c..5bfc1168b 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -911,7 +911,7 @@ postgres_prepare (PGconn *db_conn)
",amount_with_fee_curr"
",refund_serial_id"
" FROM refunds"
- " JOIN known_coins ON (coin_pub)"
+ " JOIN known_coins USING (coin_pub)"
" WHERE refund_serial_id>=$1"
" ORDER BY refund_serial_id ASC",
1, NULL);
@@ -1051,7 +1051,7 @@ postgres_prepare (PGconn *db_conn)
",done"
",deposit_serial_id"
" FROM deposits"
- " JOIN known_coins ON (coin_pub)"
+ " JOIN known_coins USING (coin_pub)"
" WHERE ("
" (deposit_serial_id>=$1)"
" )"