This commit is contained in:
Christian Grothoff 2015-06-03 14:12:26 +02:00
parent 7ef583bfcb
commit ca8eb3ec5c

View File

@ -557,24 +557,24 @@ postgres_prepare (PGconn *db_conn)
"WHERE session_hash=$1 AND cnc_index=$2 AND newcoin_index=$3",
3, NULL);
PREPARE ("insert_refresh_order",
"INSERT INTO refresh_order ("
" newcoin_index "
"INSERT INTO refresh_order "
"(newcoin_index "
",session_hash "
",denom_pub "
") "
"VALUES ($1, $2, $3)",
") VALUES "
"($1, $2, $3);",
3, NULL);
PREPARE ("insert_refresh_melt",
"INSERT INTO refresh_melts ("
" coin_pub "
"INSERT INTO refresh_melts "
"(coin_pub "
",session"
",oldcoin_index "
",coin_sig "
",amount_val "
",amount_frac "
",amount_curr "
") "
"VALUES ($1, $2, $3, $4, $5, $6, $7)",
") VALUES "
"($1, $2, $3, $4, $5, $6, $7);",
7, NULL);
PREPARE ("get_refresh_melt",
"SELECT"
@ -586,6 +586,8 @@ postgres_prepare (PGconn *db_conn)
" FROM refresh_melts "
"WHERE session=$1 AND oldcoin_index=$2",
2, NULL);
/* FIXME: should have a way to query the 'refresh_melts' by
coin public key (#3813) */
PREPARE ("get_refresh_order",
"SELECT denom_pub "
"FROM refresh_order "