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

FindAndCount all generates wrong query #5445

Closed
yarandoo opened this Issue Feb 18, 2016 · 0 comments

Comments

1 participant
@yarandoo

yarandoo commented Feb 18, 2016

When upgrading Sequelize from 3.3.0 to 3.19.0 FindAndCountAll retrieves inconsistent results with COUNT:5 and 0 rows.

We have identified the issue as being a miss generated query. Attached are the DIFF between the queries generated in 3.3.0 and 3.19.0 for our production system.

A failing test has been added via Pull Request: #5446

We were able to reproduce this issue since Sequelize 3.5.0.

For the moment we have rolled back our production system to Sequelize 3.3.0, till we can find a solution for this issue.

DIALECT: POSTGRES
Sequelize VERSION: 3.19.0
Node: 0.10.39

incorrectly generated query 3.19.txt
correctly generated query 3.3.0.txt

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