omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

Disabled paging produces invalid SQL LIMIT clause on column reordering #270

Closed Aevis closed 1 year ago

Aevis commented 1 year ago

Disabling paging by passing an options array with paging => false produces a LIMIT -1 query, when I initiate a column ordering by clicking on a column header. At least MySQL, MariaDB and apparently PostgreSQL don't allow negative LIMIT values.

The cause is two-folded:

github-actions[bot] commented 1 year ago

Stale issue message

curry684 commented 1 year ago

Sorry for missing this issue before, I fixed it in August with https://github.com/omines/datatables-bundle/commit/81120579e640ff9edeaf24ef93b501664aa80842