diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-10-17 11:01:20 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-10-17 11:01:20 +0200 |
commit | c741c1fa718e144548b5508e85e469ec93f73b54 (patch) | |
tree | 85141f374ac1c56bece3768c7db628cce716177a /src/exchangedb/exchange_do_purse_deposit.sql | |
parent | 9294f3663712dbc60da1dc575278b47e9e56c6fa (diff) | |
download | exchange-c741c1fa718e144548b5508e85e469ec93f73b54.tar.xz |
kill another dead index, beautify SQL
Diffstat (limited to 'src/exchangedb/exchange_do_purse_deposit.sql')
-rw-r--r-- | src/exchangedb/exchange_do_purse_deposit.sql | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchangedb/exchange_do_purse_deposit.sql b/src/exchangedb/exchange_do_purse_deposit.sql index 0127ad23f..1e97e2a17 100644 --- a/src/exchangedb/exchange_do_purse_deposit.sql +++ b/src/exchangedb/exchange_do_purse_deposit.sql @@ -45,7 +45,7 @@ DECLARE BEGIN -- Store the deposit request. -INSERT INTO exchange.purse_deposits +INSERT INTO purse_deposits (partner_serial_id ,purse_pub ,coin_pub @@ -65,9 +65,9 @@ THEN -- if so, success, otherwise conflict! PERFORM - FROM exchange.purse_deposits - WHERE coin_pub = in_coin_pub - AND purse_pub = in_purse_pub + FROM purse_deposits + WHERE purse_pub = in_purse_pub + AND coin_pub = in_coin_pub AND coin_sig = in_coin_sig; IF NOT FOUND THEN |