make reserves_update more canonical, avoiding odd WHERE constraint that is unnecessary
This commit is contained in:
parent
e1aa257ee1
commit
0ea012e316
@ -566,10 +566,11 @@ postgres_prepare (PGconn *db_conn)
|
|||||||
"UPDATE reserves"
|
"UPDATE reserves"
|
||||||
" SET"
|
" SET"
|
||||||
" expiration_date=$1 "
|
" expiration_date=$1 "
|
||||||
",current_balance_val=$2 "
|
",current_balance_val=$2"
|
||||||
",current_balance_frac=$3"
|
",current_balance_frac=$3"
|
||||||
" WHERE current_balance_curr=$4"
|
",current_balance_curr=$4"
|
||||||
" AND reserve_pub=$5;",
|
" WHERE"
|
||||||
|
" reserve_pub=$5;",
|
||||||
5),
|
5),
|
||||||
/* Used in #postgres_reserves_in_insert() to store transaction details */
|
/* Used in #postgres_reserves_in_insert() to store transaction details */
|
||||||
GNUNET_PQ_make_prepare ("reserves_in_add_transaction",
|
GNUNET_PQ_make_prepare ("reserves_in_add_transaction",
|
||||||
|
Loading…
Reference in New Issue
Block a user