Fixed incorrect reference to column "issuer_key" in cash selection SQL for Postgres. (#2870)

This commit is contained in:
Michele Sollecito 2018-03-23 18:04:40 +00:00 committed by GitHub
parent 975b81c2c4
commit 5677179504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ class CashSelectionPostgreSQLImpl : AbstractCashSelection() {
(if (notary != null)
" AND vs.notary_name = ?" else "") +
(if (onlyFromIssuerParties.isNotEmpty())
" AND ccs.issuer_key = ANY (?)" else "") +
" AND ccs.issuer_key_hash = ANY (?)" else "") +
(if (withIssuerRefs.isNotEmpty())
" AND ccs.issuer_ref = ANY (?)" else "") +
""")