SelectQuery::countQuery() incompatible with UNION queries

Created on 2 May 2011, over 13 years ago
Updated 17 December 2023, about 1 year ago

SelectQuery::countQuery() tries to ensure there will be one field but with UNION queries each SELECT needs to have the exact same field definitions. In the case of a query with !empty($this->union) we should skip this step.

πŸ› Bug report
Status

Fixed

Version

8.9 ⚰️

Component
DatabaseΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡ΊπŸ‡ΈUnited States drewish

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024