Skip to content

count() on \Dibi\Fluent with offset does not work #196

@paranoiq

Description

@paranoiq

the offset is applied on the outer query instead of on the inner query. Fluent generates SQL code such as:

SELECT COUNT(*) 
FROM ( 
    SELECT * 
    FROM `table` 
) `data` 
LIMIT 25 
OFFSET 25

(with MySqliDriver)

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