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

distinct option for count #2079

Merged
merged 2 commits into from
Jul 23, 2014
Merged

distinct option for count #2079

merged 2 commits into from
Jul 23, 2014

Conversation

TheBenji
Copy link

Hey,

not sure that you want it but atm the count (or findAndCountAll) is not really working if you include something.
Now you can use an distinct parameter which fixes that for most cases.

Might helps with #1953 and #1517 too.

Let me know what you think.

  • Ben

@janmeier
Copy link
Member

This is already implemented in 2.0 - not sure if it's gonna help with the issues mentioned though ...

Do you mind fixing the indentation?

@TheBenji
Copy link
Author

Yeah, I know that it's in 2.0 but I still need to use 1.7 here and I thought this might be better than build the queries raw.

Sorry about the indentation.

janmeier added a commit that referenced this pull request Jul 23, 2014
distinct option for count
@janmeier janmeier merged commit 0944116 into sequelize:1.7.0 Jul 23, 2014
@janmeier
Copy link
Member

Merged, thanks :)

@javiercornejo
Copy link

I put comment in issue #1953 but it goes here.

@mickhansen
Hi guys! This works fine for me but why this ins't closed? and where is a doc for 2.x updated?

do you need some help with docs?

Best.

IrfanBaqui pushed a commit to IrfanBaqui/sequelize that referenced this pull request Jun 24, 2015
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.

3 participants