Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: getBalances query should always join transacc table so journal restriction is applied #177

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

afk11
Copy link
Contributor

@afk11 afk11 commented Sep 17, 2020

I was getting 26000 as the final balance trying to run MoveTest on postgres. I verified the transaction journal had been changed, so I took another look at the native SQL query, which doesn't limit results to a particular journal - it calculates the balance of ALL journals.

This PR makes it so the query always joins the transaction table (previously it was only conditional) and restrict results to the provided journal

@ar ar merged commit 13757c8 into jpos:master Sep 17, 2020
@afk11 afk11 deleted the fix-postgres-balances-journal branch September 17, 2020 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants