Skip to content
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

[6.x] Added query builder support for groupByRaw #31498

merged 4 commits into from Feb 18, 2020


Copy link

rentalhost commented Feb 17, 2020

  • Tests added: 2;
    • Test SQL generated for groupByRaw() with bindings;
    • Test SQL generated for groupbyRaw() with mixed binding types to ensure that bindings order is respected;
  • Tested in a real project;
  • Based at v6.15.1;

Fixes laravel/ideas#1112.

…array $bindings = []) [fixes #1112].
@rentalhost rentalhost force-pushed the rentalhost:fixes-1112-6x branch from c29d965 to 3687788 Feb 17, 2020
@taylorotwell taylorotwell merged commit a1dc376 into laravel:6.x Feb 18, 2020
2 checks passed
2 checks passed
continuous-integration/styleci/pr The analysis has passed
continuous-integration/travis-ci/pr The Travis CI build passed

This comment has been minimized.

Copy link

kevinb1989 commented Feb 21, 2020

Perfect! I have always wanted this feature.

@GrahamCampbell GrahamCampbell changed the title [6.x] Illuminate\Database\Query\Builder: added support to groupByRaw($sql, array $bindings = []) [fixes #1112]. [6.x] Added query builder support for groupByRaw Feb 21, 2020
kennith added a commit to kennith/docs that referenced this pull request Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.