Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Correct behavior of count()#408

Open
insign wants to merge 1 commit intoadonisjs:4.1from
insign:patch-1
Open

Correct behavior of count()#408
insign wants to merge 1 commit intoadonisjs:4.1from
insign:patch-1

Conversation

@insign
Copy link
Copy Markdown

@insign insign commented Jul 24, 2020

Based on my tests, using count() without defining a alias, will always result in a array in a key "count" inside, not count('*') nor count('id'), etc.

I'm using PostgreSQL 12. Sorry if I'm wrong or didn't enough tests.

Based on my tests, using count() without defining a alias, will always result in a array in a key "count" inside, not count('*') nor count('id'), etc.

I'm using PostgreSQL 12. Sorry if I'm wrong or didn't  enough tests.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant