From 32a4a8712a2b8ee86a177bbef021face8d6d8ed0 Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Wed, 22 Aug 2018 13:38:17 +0100 Subject: [PATCH] Fix "isRelevant" functionality - fix is_modifiable column condition in cash selection. --- .../asset/cash/selection/CashSelectionSQLServerImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finance/src/main/kotlin/net/corda/finance/contracts/asset/cash/selection/CashSelectionSQLServerImpl.kt b/finance/src/main/kotlin/net/corda/finance/contracts/asset/cash/selection/CashSelectionSQLServerImpl.kt index 0678c4e6bc..c8f457c91c 100644 --- a/finance/src/main/kotlin/net/corda/finance/contracts/asset/cash/selection/CashSelectionSQLServerImpl.kt +++ b/finance/src/main/kotlin/net/corda/finance/contracts/asset/cash/selection/CashSelectionSQLServerImpl.kt @@ -58,7 +58,7 @@ class CashSelectionSQLServerImpl : AbstractCashSelection() { ON vs.transaction_id = ccs.transaction_id AND vs.output_index = ccs.output_index WHERE vs.state_status = 0 - vs.is_modifiable = 0 + AND vs.is_modifiable = 0 AND ccs.ccy_code = ? AND (vs.lock_id = ? OR vs.lock_id IS NULL) """