Skip to content

QueryBuilder's limit(0) returns all rows for some database types? #281

@stefanofornari

Description

@stefanofornari

Hello,
based on the javadoc

public QueryBuilder<T,ID> limit(Long maxRows)

Limit the output to maxRows maximum number of rows. Set to null for no limit (the default).

I expect that limit(0) returns 0 rows. Is my expectation correct? If so, I think there is a bug because

QueryBuilder qb = dao.queryBuilder().offset(0).limit(0);

returns all values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions