-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregate is failing with certain db settings #4
Comments
Is this package still being maintained at all? I would think that a month's time would be enough to at least comment on things? The last change I suggested last time took close to 3 months (maybe more) to even have a response of some kind. |
thanks for feedback 👍 |
Shouldn't this be something that the Searchable package has then? If I'm not using it why should usage of something unrelated break? |
It shouldn't break indeed. Can you provide a sample code to reproduce exactly the issue? |
I don't recall specifically what the code was but based on the resulting query I had here:
This would work in laravel but not under this package. |
I will give it a shot and make a fix where necessary! 🥂 |
In the current Query Builder instance in this package, the aggregate method doesn't remove things like order at least like the latest laravel version does to remove errors around full group by.
I can run the same query twice using this package enabled and without and the resulting queries look like:
With:
Without:
This causes the query to fail on servers where this option is enabled, whereas base installs of laravel, can function properly with this option.
For reference, https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Query/Builder.php#L2421
The text was updated successfully, but these errors were encountered: