Skip to content

Conversation

@awrichar
Copy link
Contributor

Postgres has much stricter constraints on DISTINCT/GROUP BY queries - specifically,
the fields used in ORDER BY must also be part of SELECT, and therefore may need
an aggregate function applied in order to give deterministic results.

Implement ordering by "seq" or "updated", which seem like the most useful.

Resolves #416

Postgres has much stricter constraints on DISTINCT/GROUP BY queries - specifically,
the fields used in ORDER BY must also be part of SELECT, and therefore may need
an aggregate function applied in order to give deterministic results.

Implement ordering by "seq" or "updated", which seem like the most useful.

Resolves hyperledger#416

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@codecov-commenter
Copy link

Codecov Report

Merging #422 (d894408) into main (f56d701) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #422   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          277       277           
  Lines        14858     14860    +2     
=========================================
+ Hits         14858     14860    +2     
Impacted Files Coverage Δ
...nternal/apiserver/route_get_token_account_pools.go 100.00% <ø> (ø)
internal/apiserver/route_get_token_accounts.go 100.00% <ø> (ø)
internal/database/sqlcommon/tokenbalance_sql.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f56d701...d894408. Read the comment docs.

Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⬆️ 👥 🦄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error on tokens -> accounts tab in firefly UI

3 participants