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

Fix Invalid argument supplied for foreach() for empty aggregations #309

Closed
wants to merge 1 commit into from

Conversation

temistokles
Copy link

In case an aggregation returns 0 rows, the fetch returns null and foreach triggers a warning.

Use-case e.g.:
$selection->aggregation('MEDIAN(WEEKDAY(created)) OVER ()', 'MEDIAN')

  • bug fix YES
  • BC break? NO

In case an aggregation returns 0 rows, the fetch returns null and foreach triggers a warning.

Use-case e.g.:
$selection->aggregation('MEDIAN(WEEKDAY(created)) OVER ()', 'MEDIAN')
@dg dg force-pushed the master branch 6 times, most recently from acaff11 to 524a655 Compare August 18, 2024 16:35
@dg dg force-pushed the master branch 3 times, most recently from 59cb3c7 to 8811567 Compare August 18, 2024 17:18
@dg dg force-pushed the master branch 3 times, most recently from a5e0f99 to b8d12ed Compare August 18, 2024 19:29
@dg dg force-pushed the master branch 2 times, most recently from 71f30c9 to 196f63e Compare August 18, 2024 22:01
@dg dg closed this Aug 19, 2024
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.

2 participants