Skip to content

Regression: 0.7.6 broke count() #364

@Huulivoide

Description

@Huulivoide

Prior to 0.7.6 doing Model.query().count() resulted in in a query select count(*) from "model" as the underlying knex count function defaults to '*' as the column name parameter, in an falsy value is passed in.

After 0.7.6 if no column name is specified the query becomes select "model".* from "model".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions