Remove limit / offset from queries
riseoflex88 opened this issue · 1 comments
riseoflex88 commented
I'd like to remove the offset / limit settings on a query (to work out the total count of results of a more complex query)
I've seen this pull request which seems to cover what I'm referring to:
#31
But I'm not sure it's still working as I'd guess the code has been reformatted a fair bit since then as its not working for my setup (using the BasicEngine
).
$count_sql->limit(NULL);
$count_sql->offset(NULL);
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Latitude\\QueryBuilder\\Query\\SelectQuery::limit() must be of the type integer, null given
shadowhand commented
Fixed in version 3.1.1.