Skip to content

Panic on SELECT ... WHERE ... OR #1868

Description

@nicktobey

Reproduction script:

CREATE TABLE test (pk1 int primary key, i int);
select * from test where pk1 = 1 or i = 1;

The only requirement seems to be that the first filter matches an index and the second one doesn't.

Swapping the order of the filters (select * from test where i = 1 or pk1 = 1;) does NOT panic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions