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

Don't reset columns after getting aggregate #2564

Closed
wants to merge 5 commits into from
Closed

Don't reset columns after getting aggregate #2564

wants to merge 5 commits into from

Conversation

anlutro
Copy link
Contributor

@anlutro anlutro commented Oct 26, 2013

Allows aggregate functions to be ran without clearing columns as set in select(). Seems to fix #2560 without any problems. Almost seems too easy of a fix, thought storing $this->columns in a temporary variable was necessary. A bit worried there are false positives here, but unit tests are passing.

@taylorotwell
Copy link
Member

What happens if you do ->count('column_name') and then run a select?

@anlutro
Copy link
Contributor Author

anlutro commented Oct 28, 2013

Looks like count(column) followed by select(...)->get() works, but count(column) followed by get(columns) doesn't. Will push the failing unit tests.

@patrickheeney
Copy link

Is this being fixed another way? It fixed my bug report and several others?

@anlutro anlutro deleted the aggregate-reset-columns branch February 8, 2014 08:03
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.

3 participants