Skip to content

Conversation

@ghybs
Copy link

@ghybs ghybs commented Mar 7, 2018

Hi,

This PR fixes #21

It adds a new parameter to buildCountStatement and buildWherePartial private functions, so that we can differentiate recordsTotal and recordsFiltered built queries.

See it in action: https://plnkr.co/edit/4VHcTgRzFziLQ9K8RUST?p=preview

ghybs added 2 commits March 7, 2018 12:31
otherwise both recordsTotal and recordsFiltered have the same query, therefore the same count result.
otherwise the select query is broken, since it no longer accounts for the search string.
@bean5
Copy link

bean5 commented Jul 24, 2024

@jpravetz This looks good to me. It just needs another test run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Counts for total and filtered are the same

2 participants