From 9cc1008f4eb37d66bfd7c8cd18ee4115401d21cd Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 8 Oct 2015 02:00:34 +0200 Subject: [PATCH] Trying something for a storedproc --- Database/Schemata/upgrade-0029.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Schemata/upgrade-0029.sql b/Database/Schemata/upgrade-0029.sql index 48d6ce28..41aad95c 100644 --- a/Database/Schemata/upgrade-0029.sql +++ b/Database/Schemata/upgrade-0029.sql @@ -45,7 +45,7 @@ BEGIN ( SELECT HotBitcoinAddressId, SUM(AmountSatoshis) AS UnspentAmountSum FROM HotBitcoinAddressUnspents - WHERE HotBitcoinAddressUnspents.HotBitcoinAddressId=hotBitcoinAddressId + GROUP BY HotBitcoinAddressId ) innerSelection ON HotBitcoinAddresses.HotBitcoinAddressId = innerSelection.HotBitcoinAddressId SET HotBitcoinAddresses.BalanceSatoshis = innerSelection.UnspentAmountSum