Skip to content

Unions not supported in subqueries #63

Description

@muglug

Found and fixed this bug in the PHP version:

This query

SELECT * FROM (SELECT * FROM `foo` UNION ALL SELECT * FROM `bar`) AS `baz`

is treated as

SELECT * FROM (SELECT * FROM `foo`) AS `baz`

Here's the commit with the fix in the PHP version, you should be able to port it relatively straightforwardly if you run into the same issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions