sequelize-sscce icon indicating copy to clipboard operation
sequelize-sscce copied to clipboard

Added failing test for when calling `findAndCountAll` method with a virtual column that is included in the having clause

Open kiano0sh opened this issue 3 years ago • 0 comments

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

kiano0sh avatar Sep 02 '22 18:09 kiano0sh