From 60c153930d0b114095bed2ab4dc910c8d306e4e5 Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Wed, 26 Oct 2022 19:02:40 -0300 Subject: [PATCH] get_transparent_balances fails with `no such column` Error message: "Error while fetching transparent balances for AccountId(0): no such column: u.received_by_accountt" Closes #686 --- zcash_client_sqlite/src/wallet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zcash_client_sqlite/src/wallet.rs b/zcash_client_sqlite/src/wallet.rs index 9acf4cb2b..138a4154c 100644 --- a/zcash_client_sqlite/src/wallet.rs +++ b/zcash_client_sqlite/src/wallet.rs @@ -1016,7 +1016,7 @@ pub(crate) fn get_transparent_balances( FROM utxos u LEFT OUTER JOIN transactions tx ON tx.id_tx = u.spent_in_tx - WHERE u.received_by_accountt = ? + WHERE u.received_by_account = ? AND u.height <= ? AND tx.block IS NULL", )?;