sequelize-sscce
sequelize-sscce copied to clipboard
Added failing test for when calling `findAndCountAll` method with a virtual column that is included in the having clause
When using findAndCountAll method, it's not possible to define a virtual column (through attributes option) and at the same time include that virtual column inside the having clause of the query because when sequelize builds the count query the virtual column gets removed from the actual query.
Related to: https://github.com/sequelize/sequelize/issues/9747